Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

You can add, change, append values of Smart Checklist content using Jira Misc Workflow Extensions (JMWE) add add-on.

Smart Checklist can be tightly integrated and expanded with JMWE tools (read add-on documentation)

Note

This instruction applies to Jira Server instances. For Jira Cloud - please check Jira Misc Workflow Extensions (JMWE) - Cloud

Use Case: Append Smart Checklist items while transitioning Jira issue 

  1. Edit project Workflow

    1. Image RemovedImage Added
  2. Add Post-Function to the transition you want. E.g. "In QA"

    1. Image RemovedImage Added
  3. Choose proper post Function type

    1. Jira (warning) Server : "Set issue, user or project Entity Property value (JMWE add-on)"

    2. Image RemovedImage Added
  4. Set Property Name to update to:  

    Code Block
    com.railsware.SmartChecklist.checklist
    Image RemovedImage Added
  5. Using entity properties, to add a value to the checklist, you should use the "Groovy Expression" option of the "Set issue, user or project entity property" post-function with a script. If you want to keep/use current values of the checklist - add to the beginning of editor converted values of "com.railsware.SmartChecklist.checklist" property itself and then add and "new items" using Formatting Guide.

    Code Block
    JsonOutput.toJson(issue.getEntityProperty("com.railsware.SmartChecklist.checklist")+"\n- new item 1 \n- new item 2\n- new item 3")

    The reason why using "Groovy Expression" is a must and a "Groovy Template" won't work is because the checklist's Entity property contains newlines, which need to be encoded in JSON (as "\n").

    Image Removed
    • Image Added
  6. Save Post Function by clicking "Add"

  7. Check added post function and Publish Draft

    1. Image RemovedImage Added
  8. Them

    Then when you

    will

    try to move a Jira Issue from any

    states

    state to "In QA" (in our case) - you'll get a new piece of Smart Checklist checklist and new items added

    1. Image RemovedImage Added
  9. Enjoy!

Use Case: Clean up Smart Checklist values on Workflow Transition

If you want to clean up checklist values completely (e.g. when moving from "In Progress" state to "ToDo" - proceed with the same actions that were described in the previous use case.

Then as Groovy Expression of "Set Issue, User or Project Entity Property Post-function" from JMWE simply put the following string

Code Block
linenumberstrue
""

...

Then save and publish the workflow and you are set!

...