Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Script to transition a clone after movement?

Mihai Mihai
Contributor
September 6, 2019

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

1 vote
Randy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 6, 2019

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

arama mihai
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 7, 2019

Hello,

 

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

 

Thank you!

Mihai Mihai
Contributor
September 8, 2019

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