"create issue" with post function oncreateTransition does not work in create transition

I try to create an issue when create the first issue in a workflow (default "Create" transition) but this does not work.


Transición: Create

  1. Create

esta es la transicióninicialen el flujo de trabajo.

Pantalla: Ninguna - transición incial no tiene una vista.

Añadir función posterior

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

  1. Create issue 
    • Condition value: %IssueType%, Regex pattern: Task
    Project: Original project 
    Issue type: Bug (1) 
    Priority: Parent's priority 
    Reporter: Current user 
    Assignee: Parent issue's assignee 
    Affected versions: None 
    Fixed versions: None 
    Components: Parent issue's components 
    Copy parent issue custom fields: Descripción
    Copy original issue custom fields: Motivo petición
  2. Crea una incidencia de origen.
  3. Reindexar una incidencia para mantener los índices sincronizados con la base de datos.
  4. Disparar un evento Incidencia creada que puede ser procesado por escuchadores.

2 answers

I think I got it. This sould work without any problem so my previous comment was wrong. But as I see in the doc you have to move up the 'Creates the issue originally' postfunction. The doc is for the subtasks but is the same:


And just in case someday you change your postfunction, make sure that you don't create in the postfunction the same issue type that you are creating manually becuase this will create a loop. For example, if you create a task that has a postfunction that creates a task it will result in a loop.

Good answer and the warning is especially important ;).

But I want the same issue type in the post function that the one I create manually. Is this not possible? Effectivelly now I have a loop.

Well it is possible, but, you have to figure out another condition that will prevent the looping as described in https://bobswift.atlassian.net/wiki/display/CSOT/How+to+create+subtasks+on+initial+issue+create

Hi, If I remember correctly there was a problem when creating a issue in the create transition, but I can't find the issue created for this. Just to make sure, it's working fine in the other transitions?

Yes, it works fine in the other transitions

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,977 views 19 22
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