"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 
    Conditions:
    • Condition value: %IssueType%, Regex pattern: Task
    Summary: 
    Description: 
    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

This widget could not be displayed.

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:

https://bobswift.atlassian.net/wiki/display/CSOT/How+to+create+subtasks+on+initial+issue+create

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

This widget could not be displayed.

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
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

220 views 1 3
Join discussion

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