I have a custom listener script that will clear desired fields when an issue is cloned, and it works fine.
But is there a way to only grab fields that are under a specific tab?
For example:
If Tab 1 had 20+ more fields, is there a method within listeners to call those fields under Tab 1? The idea is if in the future I need to add more fields under Tab 1, I don't have to update the listener script with new fields every time.
Or is calling tabs only unique for Behaviors?
It depends how you are retrieving the fields from the issue. Those field objects may have a tab attribute you can filter them on, but more likely you would have to use a different approach to find the fields on a given tab. That is more tedious, needing to go from Project to the Issue Type Screen Scheme, then with the Issue Type go to a Screen Scheme, then from there to a Screen, which should have the tab info.
https://community.atlassian.com/t5/Jira-questions/R-How-to-find-screen-for-issue/qaq-p/2562517/comment-id/723485#M723485 may help a bit
Thanks @Matt Doar _Adaptavist_
By any chance do you know what is the order of operation of all the Scriptrunner's capabilities? Assuming an issue uses Issue Create trigger, does it go: Workflows, Behaviors, Listeners?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Behaviours are JavaScript, and are rendered when you view a browser page.
Listeners use Jira events inside Jira. These events are triggered when things happen such as Create Issue.
Workflow status changes are another thing that can trigger a Jira event, in the post functions in a transition
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, @Diana Gorv You may want to try reaching out to the Sriptrunner team directly…
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.