Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

How to check the particular item from checklist field using Jira automation

Hello Everyone,

I am working on Jira.

I need some automation where on certain condition Jira automation rule will check some specific item of checklist field. Is it possible and if yes can you please give example of that.

Regards

Pallavi Deore

2 answers

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.
Oct 31, 2023

Hi @Pallavi Deore

If you are using Checklist for Jira, then take a look at the following resources:

I would direct your attention to the Updating existing items example.

Kind regards,
Maxime

Hello @Maxime Lefebvre _Okapya_ ,

In my case, When Story move to Close state then issue which have this story key in the checklist item that should be checked.

So I use the trigger as transition issue to Close and created smart value variable for trigger issue key and then I use the Branch rule / related issues as the checklist is smart value and then use below json in additional field:

{
"update": {
"Checklist": [
{
"edit": [
{{#Checklist}}
{
"name": {{name}}
{{#if(equals(#name, #issuekey))}},
"id": {{id}},
"checked": true
{{/}}
}
{{^last}},{{/}}
{{/}}
]
}
]
}
}

Getting error " Error while parsing additional fields. Not valid JSON."

So In that issuekey is my smartvalue which is actually trigger issue key.

Can you suggest me what exactly is wrong in this.

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.
Nov 01, 2023

Hi @Pallavi Deore

Here's how I would do it, (but I unfortunately don't think this can work):

{{#Checklist}}
{
"id": {{id}}
{{#if(equals(name, issuekey))}},
"checked": true
{{/}}
}
{{^last}},{{/}}
{{/}}

The reason I don't think this can work is because you cannot access smart value variables from outside the loop while inside the loop. You have access to the item's variables like namestatusIdchecked etc. but you can't access and compare issueKey.

Try it out and maybe you'll show me wrong, but I think you would be better off using groovy scripts at this point.

Kind regards,
Maxime

0 votes
Wojciech Wardaszko _HeroCoders_
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.
Oct 31, 2023

Hi @Pallavi Deore

Please share what is the app used to provide Checklist functionality on your server - the answer depends on that.

Cheers!

I am using Checklist add on.

With automation rule I need to edit checklist items. so I use "Edit Checklist items" action then I selected that field which I wanted to update but the problem is how to use "Item Filters". I have filter out checklist items with item name which I have in smart value eg: test but If I directly use that {{test}} in value it didn't work.

I know that we have to specify the regular expression. In my case I have to use issuekey in that.

Any suggestion.

Wojciech Wardaszko _HeroCoders_
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.
Oct 31, 2023

Checklist Add-on is actually Checklist for Jira, so you're best off following @Maxime Lefebvre _Okapya_'s lead in this case :)

Cheers!

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.
Oct 31, 2023

@Pallavi Deore

We do not support smart values inside filters at the moment.

Could you please explain what exactly you are trying to achieve? I might be able to help with it.

Hello @Maxime Lefebvre _Okapya_ ,

I added comment above.

please check.

Could you please suggest where I made mistake.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events