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

How does one obtain the handle to an issue being accessed in a Behaviour initialiser?


I have a number of select list (dropdown) fields on my jira form, some of which hold over 500 values.  

I have had success populating these fields from an external source using groovy script in the script console and within the field behaviour.  The issues I encounter are this:

1. As a new issue is created, I want to populate these dropdowns if they have not been populated.  However, I am struggling to find the methods needed to get a handle to the issue being created.  I am using Adaptavist Behaviours and would like this behaviour to execute conditionally each time a new issue is created.  How does one get hold of an issue not yet persisted?

2.  The initialiser appears to execute multiple times when creating an issue.  Is there a suggested alternative location or time in the process for such a script to be contained?


Thanks in advance for any advice,


1 answer

I think there may be clues to what I need to do based on this post.

The suggestion would be to use the underlyingIssue object, as it is representative of an issue which is not yet persisted.  Does this sound feasible?

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira

The Jira Server Mobile App is here!

Hey Community! My name is James and I am a product manager on the Server Mobile team. I am excited to announce the new Jira Server Mobile apps for both iPhone and Android are now available. This is...

51 views 1 3
Join discussion

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