Hi,
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,
Luke
I think there may be clues to what I need to do based on this post. https://community.atlassian.com/t5/Adaptavist-questions/ScriptRunner-Behaviours-how-to-get-information-of-an-issue-when/qaq-p/625146,
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?
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.