Dynamic (Checklist for jira) items based on drop-down value selection (using behaviours)

Ravi Kanth
Contributor
December 6, 2021

I am on jira server, using Scriptrunner-behaviours and checklist for jira addon on my environment.

We need dynamic checklist which means checklist items changes based drop-down value selection. 
single select drop-down field selectchecklist has two values a and 1.

I have create check list field checklistA and deleted options from it to make it empty.

when a is selected checklistA should have three checkitems a, b and c and when 1 is selected checklistA should have three checkitems 1,2 and 3.

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.
December 7, 2021

Hi Ravi,

Developer of "Checklist for Jira" here.

Unfortunately, the Checklist custom field cannot be modified live on the client-side by Scriptrunner Behaviours. We have tasks on our backlog to investigate the possibilities. It is now available since version 7.1.0.

You could instead use listeners to populate the Checklist once the issue is saved (created or updated). You can refer to the following documentation page: Updating checklist when a field changes value.

There is also the alternative to use our workflow post function to add items during a transition. For example, adding items during the "Create" transition of the issue. You can refer to the following documentation page: Adding new checklist items during a transition.

There are even more ways to modify checklists, like Automation for Jira and SIL Scripts. The caveat is that all methods will change the field's value after an issue has been saved or transitioned. There is currently no supported way to modify the field value live on the client.

I hope this information helps you engineer your automation!

Regards

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events