Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

ComponentAccessor not found

Hi, 

I am fairly new to Jira and Java so please excuse if that is a poor question. I am trying to implement a groovy script via JMWE but I found that I have issues with the ComponentAccessor. I have tried to copy a number of scripts, all using the CcomponentAccessor and testing it using the JMWE Groovy Console. Each time I call the ComponentAccessor, for example in the following code

import com.atlassian.jira.component.ComponentAccessor

return(ComponentAccessor)

I get the Message 

Script testing failed with a server error.

I tried to search for the Component through the Interface and it returns ComponentAccessor does not exist.

Does that mean that I can't use the ComponentAccessor with the JMWE? Or do I need to do some extra steps?

2 answers

1 accepted

1 vote
Answer accepted

com.atlassian.jira.component.ComponentAccessor is actually imported by default. Can you try removing the import?

Same pb for me on my staging env on self hosted Jira DC 8.5.8, ComponentAccessor causes the error and I get the same error message on Groovy console.

The same script on my prod env runs perfectly, with the same version of JMWE plugin version (6.2.4).

Removing the import doesn't change anything.

We will soon be releasing a new version of JMWE that should fix this random issue. For now, the workaround is to restart Jira.

Like Eddy Fras likes this

Thanks David for your answer, a simple disable/enable plugin was enough to fix the issue.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.12.2
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you