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

how to reopen an issue if a link is added

Elifcan Cakmak Community Leader Apr 19, 2017

Hello

Our need is that when we link an issue to a closed one, we want the closed issue to be reopened. 

I tried to do this with adding a custom script to the transition however even if I add the script after "Re-index an issue to keep indexes in sync with the database." step, it did not work.

Also another solution I tried was adding a "Link Date" and compare it with the resolution date but I don't think it is possible to compare different custom fields of different issues.

Any ideas would be appreciated.

Thanks!

1 answer

To keep it simple:

  1. Add a workflow transition from Closed -> reopened status's with a specific name like "reopen on link",
  2. Add a SR listener that Triggers the "reopen on link" transition whenever a link is added to an issue. 

Ff it's not in a closed state, the transition wont be valid so it'll just fail and not do anything.  Closed issues will reopen

Elifcan Cakmak Community Leader Apr 20, 2017

Hello

Thanks for your answer.

My question is that, wouldn't the listener open all the issues that are closed and have links? How will I differentiate the ones that are linked after it was closed? 

I thought about this issue a lot so I can be missing very obvious points here, sorry for that if so :) 

Elifcan Cakmak Community Leader Apr 21, 2017

Hello

I did some research and understood how the listeners work now so you can ignore my first question. Thanks for the advice. Can I ask, is there an event for link issues? Because as I can see there is not. I found this question: 

https://community.atlassian.com/t5/Answers-Developer-Questions/Is-there-any-Issue-Link-Event-In-Jira/qaq-p/489167

Looking forward to your answer. Thanks again.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Software

Early Access: If you use Jenkins and Jira Software Cloud, you need to read this!

The Jira Software Cloud Team has been busy working on a simple, secure, and reliable way to integrate your build and deployment information from Jenkins with Jira Software Cloud. This means you don’t...

729 views 0 11
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