Hey there,
I want to automatically copy information from an Epic to a linked issue (in JIra discovery product) when certain fields in the Epic are filled out. This is working for all fields except I can't get the checkbox field to update correctly. It doesnt tick the actual checkbox, just remains un-checked.
I have tried with both smart values without success:
{{triggerIssue.customfield_11360}}
{{triggerIssue.customfield_11360.value}}
Hi @lila
To set or clear a built-in checkbox field for JPD, I believe the advanced edit with JSON is required, under More Options.
For example, to set the field use the custom field ID and the value of 1:
{
"fields" : {
"customfield_10120": 1
}
}
You wanted to conditionally set the field, based on a field in the Epic being set.
What is the type of the field in the Epic? If it was a text field, this may work, using conditional logic:
{
"fields" : {
"customfield_10120": {{#if(triggerIssue.customfield_11363.isNotEmpty())}}1{{/}}{{#if(triggerIssue.customfield_11363.isEmpty())}}0{{/}}
}
}
Please substitute in your custom field ID for the R&D field.
Kind regards,
Bill
Awesome; I am glad to learn that helped!
Please consider marking this question as answered to help others with a similar need find solutions faster. Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Bill, i just realised i cant use your first json because it only ticks the checkbox on the lined issue regardless if it is ticked or unticked at epic level. The conditional json isnt correct though according to jira?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @lila
Would you please post images of your current rule action with the JSON attempted and of the error you are seeing? Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Which field is 11335? And is that field selected in your Edit issue list of fields? If so, take that out there because you are updating it with the Advanced section. Not saying it will cure the syntax error, but will be cleaner.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Fields 11335 is the R&D checkbox equivalent in jira product discovery. This one doesnt appear in the drop down unfortunately so i have to specify it in the advanced field.
Ive just tried a different way with a conditional, if R&D (from epic) is empty >
{
"fields" : {
"customfield_11335": 0
}
}
if R&D (from epic) is not empty:
{
"fields" : {
"customfield_11335": 1
}
}
However, it only works for ticking the box not unticking :(
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I just tested this again for a JPD checkbox field and it worked correctly.
Please post an image of your current, complete automation rule and an image of the audit log details showing the rule execution for cases of setting and clearing the checkbox. Those may provide context for what you are observing.
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Bill, i posted images of the full automation above along with audit log result.
Your initial json worked, albeit only for selecting the boxes, not for unselecting. So by default it was selecting the checkbox alwasy. the second one is the one with the above error screenshot (not valid json)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Was there ever any resolution for this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @lila
If this is still not working...
Please copy the dynamic JSON from the Additional fields section and write that to the audit log before the Issue Edit action, and re-test. With that, we can observe what is causing the problem with the JSON.
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @lila
Is this a regular Jira Checkbox field? Or is it a field from an add-on like Checklist Pro?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.
Learn more
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.