Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,295,189
Community Members
 
Community Events
165
Community Groups

How to clone checklist with smart values

Hi!

How can I clone Checklist using smart values? I have a custome filed Checklist cf[11002]. I can't clone it usind standard filed in automation UX. How to clone it using smart value? We use this for checklist https://okapya.atlassian.net/servicedesk/customer/portal/3

2 answers

1 accepted

Hi Alena,
I tried to post you an answer yesterday but Atlassian community has bugs that prevents me from posting. (They keep telling me I've already posted that message)
To update a checklist field, you need to use our REST API format.
(Click "More options" in Automation)
I will post an example in another comment to see if I can make it work.
You can always contact our support if you need help with our App, we answer quickly!

Regards

{
    "fields": {
      "ChecklistFieldName": [
        {{#issue.ChecklistFieldName}}
          {
            "name": "{{name}}",
            "checked": {{checked}},
            "status": { "id": "{{status.id}}" }
          }
          {{^last}},{{/}}
        {{/}}
      ]
    }
}

Like Alena Samruk likes this

@Maxime Lefebvre _Okapya_  thank you a lot! It works perfectly! 

This is great to hear!

Like Alena Samruk likes this

Hi @Alena Samruk 

Are you using the built-in checkbox field or a marketplace addon app for checklists?

If you are having difficulty finding the correct smart value/custom field ID, please use this how-to article to find your field: https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/

Kind regards,
Bill

Hi @Bill Sheboy ! Thanks for your answer! 

We use addone, linked above (https://okapya.atlassian.net/servicedesk/customer/portal/3) so it's not built-in field

 

Yes, I need to use JSON functions. I know field id (cf[11002]), but I don't know how to write the function correct. I've tried this, but it doesn't work (field is still empty)

{
"update": {
"customfield_11002": [
{
"add": "cloned"
}
]
}
}

 

So maybe you can help me with correct JSON functions text?

First thing, were you trying to use "cloned" as an operator or as the value to set?  That is not a valid operator for the built-in JSON updates with automation rules.

 

Let's try the simplest possible JSON first to see if that works for your addon's field:

{ 
"fields": {
"customfield_11002": "{{triggerIssue.customfield_11002}}"
}
}

 

If that does not work, please find your vendor's documentation on the marketplace site, and they often show examples with automation rules and JSON for their fields.

@Bill Sheboy  thanks for help! Unfortunately it doen't work for this field. JSON from your reply works with other fields, but not with this one. Will try to find answer in vendor's documentation

Sounds good.  Which addon are you using?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
Community showcase
Published in Jira Software

Upcoming changes to epic fields in company-managed projects

👋 Hi there Jira Community! A few months ago we shared with you plans around renaming epics in your company-managed projects. As part of these changes, we highlighted upcoming changes to epics on...

14,403 views 37 44
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you