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

Script to transition a clone after movement?

Hello,

 

We would need to create a script with Scriptrunner for the following use-case:

 

issue ABC-1 is in project ABC

 

issue ABC-1 is closed. A postfunction or a listener will: 

 

1) create a clone of issue ABC-1 in project ABC . The clone (let's say ABC-2) will have to be in the same status as well (Closed).

2) initial issue, ABC-1 is moved to project XYZ, in a different status: "Verifying".

 

We are having problems identifying a way to transition a clone after creation.

 

Please let me know if you have any suggestions, and also how to write the script.

 

Thank you very much!

 

1 answer

>  We are having problems identifying a way to transition a clone after creation.

 

Are you asking about how to transition ABC-2 to the Closed status after you clone?

Hello,

 

Yes, transitioning ABC-2 to Closed after the clone, and also transition XYZ-1 to 'Verifying' after moving it.

 

Thank you!

Hello,

 

I am now particularly interested in how to move the issue ABC-1 to project XYZ, via any post function or listener. 

 

I managed to transition ABC-2 to Closed after the cloning using JMWE post creation script. 

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira

Demo Den Ep. 7: New Jira Cloud Reports

Learn how to use two new reports for next-gen projects in Jira Cloud:  Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...

314 views 1 3
Join discussion

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