Hi there,
I have an automation to automatically check the checkboxes of a custom field.
Using the documentation,
I did this:
{
"fields": {
"customfield_15423": [{ "value" : "There is a common understanding of purpose and content of the story"}, {"value" : "Acceptance Criteria exists"}]
}
}
What I put in the "value" is basically the fixed test of the checkboxes. So I've tried to do with ID for a single checkbox:
{
"fields": {
"customfield_15423": [{ "id" : 1}]
}
}
In both cases I have:
"an item name cannot be empty. (customfield_15423))"
What am I doing wrong?
EDIT:
I believe you are using our third party custom field "Checklist for Jira", not a multi-select custom field.
Here's our documentation on how to update items using automation, we have an example that checks all items in the list.
Example: (Make sure you change Checklist to your field name instead)
{
"update": {
"Checklist": [
{
"edit": [
{{#Checklist}}
{
"id": {{id}},
"checked": true
}
{{^last}},{{/}}
{{/}}
]
}
]
}
}
I hope this helps!
Kind regards
I've read the documentation and that seems indeed the right way to do it, thanks for that. It seems it checks all the checklist at once, which is exactly what I need.
Unfortunately it's not working, now I don't have any error (it says in the log success, updated issue XXXX). However, those checkboxes remain unchecked.
Any idea why?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You also need to replace {{#Checklist}} for {{#customfield_15423}}, there were 2 places to replace.
Let me know how this goes!
Kind regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I actually tried that first and got an error, but I must have made a mistake because i tried it again and it's working!
Thank you very much for your help!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Would you please include an image of your complete rule? That may provide context for why this error is happening. Thanks!
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Bill Sheboy !
Sure, I've included additional information on the original posting.
Thank you very much in advance,
Tiago
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.