creating a issue and linking

Issue #968 resolved
Scott McDonald created an issue

Hello:

I'm attempting to create an issue and link it to another issue based off a certain value selected upon create - is that possible?

Use Case: If the option of 'Badges' is selected from a multi-select field upon create, I would like a separate issue created and linked to the issue the user is creating.

Thank you,

Scott

Comments (4)

  1. Fidel Castro Armario repo owner

    Hi @scottjmcdonald,

    You can do it using "Create issues and subtasks" post-function in Create Issue transition with a configuration like this:

    • Conditional execution: "Badges" in %{nnnnn} replacing nnnnn with field code of your multi-select field.
    • Issue Links: In this parameter you should select Current issue as issue to be linked to new issue, and the issue link type you want to use.

    Please, let me know if you have doubts on the rest of parameters of post-function "Create issues and subtasks".

  2. Scott McDonald reporter

    Here is what I have as my post-function but it's still not creating a separate ticket and linking it. Does it have to do with the string list?

    Screen Shot 2018-01-31 at 1.04.46 PM.png

  3. Fidel Castro Armario repo owner

    Hi @scottjmcdonald,

    Since Items Missing custom field is a multi-select and you may have more than one option selected simultaneously, you should use the following expression:

    "Badges" in %{nnnnn} ? ["Lost Badge"] : []
    

    replacing nnnnn with field code for Items Missing custom field.

    Anyway, I think it's simpler to use the following alternative configuration:

    • Select option for creating One issue instead of Multiple issues.
    • Conditional execution: "Badges" in %{nnnnn}, replacing nnnnn with field code for Items Missing custom field.
  4. Log in to comment