I need help in writing a custom code for automatically picking up all tickets that apply to a specific JQL filter results and move them into a specific Epic ticket ('Test-1' where 'Epic Name' = 'Incidents'). This should only apply to 'Project X'.
Is this achievable via custom script or do you see any other way of doing this automatically?
I appreciate any help. Thanks.
I am not sure if you can automatically do this with ScriptRunner, since it seems to be an outstanding feature request on our support portal here. You might be able to hack something together using MoveIssueBean, but it seems rather complicated based on previous discussion.
You can already do bulk changes based on specific JQL filters in JIRA (go to your issues, do a JQL search, click Tools, click Bulk Change), but I don't think there is a way to set this up to run automatically based on a custom script. Perhaps @Nic Brough [Adaptavist] can chime in...
I think, but have not tried, writing a scripted custom listener, although I don't think I'd use JQL. It could catch the "create" event, check the rules and then set the "epic link" field to the right Epic.
(I think the original question was about moving issues, which I'd never attempt to write myself!)
If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot