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

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

Groovy Server 6 to server 8

Hi community


I've this code in Groovy server 6 and I would to put in server 8 the problem is that not find the method. Cause any methods are changed, Can you help me to verify this code? thank's


The code in Jira is :


1 answer

1 accepted

1 vote
Answer accepted

There is nothing wrong with that code. 

The "getIssueContext()" method will return a valid issue if there is one. 

But the static type checker doesn't know that. This is why you are getting this error/warning. It should still work.

Now, if you don't like to see the error in the editor, I'd recommend you use the following instead:


 underlyingIssue is always of type Issue. As opposed to issueContext which can either be an Issue or IssueContext

But be careful with behaviours expected to run in the "Create" screen before the issue has been saved. In that case, the underlyingIssue will be null.

Thank's @Peter-Dave Sheehan !!!


I usually works in JIRA cloud, but in this project I'll work in server... so for me is all new


Thank's for the response

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Apps & Integrations

🍻🍂Apptoberfest Update: Upcoming Virtual Events 🎉

Hello Community! I hope you've been enjoying the 🍂Apptoberfestivities🍂 (I know I have!) The event is heating up next week with a series of virtual events that we're calling the 🍻🍂Partner App ...

723 views 7 24
Read article

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