Forums

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

If multiple transition in a particular status completed, we need to auto close the ticket

Jeya
Contributor
October 1, 2021

image.png

2 answers

1 accepted

2 votes
Answer accepted
Nic Brough -Adaptavist-
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.
October 1, 2021

My guess is that each loopback transition is an authorisation of some sort from a different person or group each time (hopefully protected with conditions to stop the wrong people using them, and keep the display looking simple).

Each of these transitions would need to record that they have been done somehow (usually, people will do this by setting a custom field, but a better way would be a scripted field that reads the history of the issue to check the transitions have been performed)

Then your close option can be protected by a simple condition on the transition, or even performed by a listener that can pick up and check when the last transition gets done!

Jeya
Contributor
October 4, 2021

Thanks for the update.

1. I have used script only, faced some issues while implementation.

2. if we run the script directly using the issue key, it is working fine.

but when added in sil listeners, auto transition not happening, may be need to try adding the script in all transition Postfunction on the particular status.

Nic Brough -Adaptavist-
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.
October 4, 2021

It is not clear what you are now asking about, sorry.

Could you explain where you are stuck, and exactly what you are doing?

Jeya
Contributor
October 5, 2021

Thanks for the support.

It is little complicated, used automation rules instead of script, now it is working fine.

1 vote
Jack Brickey
Community Champion
October 1, 2021

While the workflow sure looks scary, I’m unsure what your question or goal actually is. I might start with getting rid of all (most?) of the loop-transitions in your workflow.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events