Forums

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

Change subtasks status when an issue is linked

Jefferson Fontana
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 6, 2019

Hello everybody, can someone please help me with the question below?

This is my scenario:

I have an issuetype "A" with some subtasks with a simple workflow (to do > in progress > done -- which can be reopened). I also have an issuetype "B", and when i link the issuetype "B" to "A", the subtasks in status "done" must change to "to do" again.

How can I do this?

Thanks in advance

1 answer

0 votes
Ismael Jimoh
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.
June 6, 2019

Hi @Jefferson Fontana 

First you’ll need scriptrunner.

Next create a Listener that listens for issue link event on your project.

Next write a script that checks the issuetype of the linked issue and based on this you can add a method for reopening your subtask.

 I’ll recommend having a look in the forums for how to script these various methods.

Hope the suggestion helps get you started 

Jefferson Fontana
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 7, 2019

Hi @Ismael Jimoh , thanks for the reply.

 

Can you help me with the listener?

Ismael Jimoh
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.
June 10, 2019

Hi @Jefferson Fontana 

Sorry for the late reply.

Do you mean you would like me to write a script listener for you?

If so, I am sorry I cannot and would suggest reaching out to the vendor (Adaptavist Scriptrunner) as they may provide such a service.

You can find the official documentation here.

Regards.

Suggest an answer

Log in or Sign up to answer