Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

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

Hi!

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

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

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

Thanks.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

Why everyone using Jira must be GDPR-compliant

Did you know that penalties up to 4 % of the yearly company turnover are possible in case of GDPR violations? GDPR regulations are currently mainly relevant for companies in the EU, but countries lik...

80 views 1 2
Read article

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