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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

ScriptRunner -Custom Script to auto-route tickets based on custom JQL to a specific Epic ticket



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.

2 answers

0 votes
Peter DeWitt Community Leader Sep 26, 2017

Daniel, the non-scripting route would be a Bulk update of the JQL search results.  You can update the Epic Link field through the wizard.

Thanks Peter. The bulk edit is the Business current course of action on those tickets. They are still looking for an auto update solution it seems. If there's any...


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...

Thanks for the reply Joshua. Sorry, I had to edit the question as I had it wrong the first time. Let me know. Thanks again.

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!)

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events