We have a scenario where we need to append new checklist items as we move forward in the JIRA workflow through transitions. Can we save state (checked or unchecked) of the checklist items so that if we move the issue back to a previous stage, it only gives the items specific to that stage and along with the state of each of the checklist item which was there in that stage previously.
Note: I created a custom field Checklist item (field type: Checklist) with few default(global) items and then appending other items(local) as we move forward in the workflow.
Eg. I have Stages: To Do, In Progress, Done
To Do Stage has checklist items: A, B
In Progress has: A, B, C and D (A and B from previous stage and as we move forward to In Progress from To Do, it appends C and D to the list)
Similarly, Done has: A, B, C, D, E and F
Now if we move back to In Progress from Done, it should update the checklist to only have A, B, C and D, and leave their actual states as is (checked if they were checked and unchecked if they were left unchecked)
I am looking for some help on this, and if we can achieve this through Script runner or GUI. Could you please provide your inputs. Thanks in advance.
Hello Pratik,
If you are using "Checklist for Jira", you cannot specifically remove items on transition. Only append or replace.
Another possibility would be to create multiple checklists (with no options) and populate / empty them on transition.
It is probably possible to remove those items with a ScriptRunner script. If you search the community for "script checklist" you should be able to find some inspiration (like this).
Alternatively you could use our Rest API to update the list manually, removing some items.
Regards,
Maxime
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.