Create set Subtasks upon Issue creation with Post Function

Issue #713 resolved
NCATS LAB created an issue

JIRA Software 7.4.1 JWT 2.2.39

I am trying to trigger the creation of seven Subtasks at the creation of a custom issue using Post Functions. I have tried to follow the instructions, [here|https://bitbucket.org/fcarmario/jira-workflow-toolbox/wiki/post-functions/Create%20Issues%20and%20Subtasks], but keep getting the error, "We can't create this issue for you right now, it could be due to unsupported content you've entered into one or more of the issue fields. If this situation persists, contact your administrator as they'll be able to access more specific information in the log file."

Attached are screenshots of my Post Function, Validator, and System Log

Comments (4)

  1. NCATS LAB reporter

    I looked through your issues, and found this listed in Issue #650. Moving post-function "Create issues and subtasks" AFTER post-function "Creates the issue originally" allows this to work. However, I cannot seem to get the Conditional execution to work. I have a custom Checkbox with three possible options. If either (and/or) options 1 or 2 are checked, I want this postfunction to execute - otherwise, I want it to be skipped.

    If that works, I would like to create a new "Create issues and subtasks" That runs if ONLY option 3 is checked.

  2. Fidel Castro Armario repo owner

    Hi @NCATS_Lab,

    You should use the following boolean expression at parameter Conditional execution:

    %{nnnnn} in ["Option 1", "Option 2"]
    

    where nnnnn is field code for your Checkbox custom field, and Option 1 and Option 2 are the exact names of the options 1 and 2 in the checkbox.

    For your other post-function you can use any of the following boolean expressions:

    %{nnnnn} in ["Option 3"]
    

    or

    %{nnnnn} = "Option 3"
    
  3. NCATS LAB reporter

    Thank you for your quick support! I wasn't understanding the syntax, but you make this easy :)

  4. Log in to comment