loop when clone an issue in create transaction

I use a script to clone an issue in the postfunction.- How can I prevent the loop? This only occurs in CREATE transaction, not in the others:


Lo siguiente se procesará luego de realizada la transición

  1. Crea una incidencia de origen.
  2. Reindexar una incidencia para mantener los índices sincronizados con la base de datos.
  3. Script workflow function : Clones an issue and links.
    Issue will be cloned to project DUNE
    With issue type: Task
  4. Disparar un evento Incidencia creada que puede ser procesado por escuchadores.



1 answer

0 votes

You need to create an issue of a type which has a different workflow that does NOT have this post-function on it.

Or, you could add a new custom field to the issue type (read only, no need to put it on screen), set it on the primary new issue, and then interrogate it and break oout of the clone process if it is found on the originating issue.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,508 views 15 20
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you