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-on.

The same flow is available while using the native post-function of Smart Checklist. See the details here: Modify checklists on a Workflow Transition 

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

...

Append Smart Checklist items while transitioning Jira issue 

  1. Edit project Workflow

    Image Removedimage-20240113-013015.pngImage Added
  2. Add Post-Function to the transition you want. E.g. "In QAprogress"

    Image Removedimage-20240113-013113.pngImage Added
  3. Choose the post Function "Set issue, user or project Entity Property value (JMWE add-on)"

    Image Removedimage-20240113-013204.pngImage Added
  4. Set Property Name to update to:  

    Code Block
    com.railsware.SmartChecklist.checklist
    Image Removedimage-20240113-013506.pngImage 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 checklist - add to the beginning of editor converted values of "com.railsware.SmartChecklist.checklist" property itself and then add and "new items" using the 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 checklists' Entity property contains newlines, which need to be encoded in JSON (as "\n").

    Image Removedimage-20240113-013550.pngImage Added
  6. Save Post Function by clicking "Add"

  7. Check added post function and Publish Draft

    Image Removedimage-20240113-013714.pngImage Added
  8. Moving a Jira Issue from any state to "In QA" (in our case) will get a new piece of Smart Checklist added to the issue

    Image Removedimage-20240113-013852.pngImage Added
  9. Enjoy!

Clean up Smart Checklist values on Workflow Transition

...