Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to save/retain state of Checklist items while moving it from one state to the other

Pratik Kapoor
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 28, 2019

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.

1 answer

0 votes
Maxime Lefebvre _Okapya_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 18, 2019

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events