Hi all,
I am cloning stories and sub-tasks with Jira automation, no problem.
But, the clones are missing the checklist and the list of acceptance criteria. I am not able to clone these as well.
Can anybody help me?
Thanks! :)
Hi Matthias,
I have provided an example how to do this in this community post.
I notice in your screenshots you are using Headers and Mandatory/Optional toggles. In the example I provided, they are not copied, but it's easy to add them to the payload.
Please look at our JSON (Rest API) format to know which properties are available to put in the payload.
Here's an example with added isHeader and mandatory properties:
...
{
"name": "{{name}}",
"checked": {{checked}},
"status": { "id": "{{status.id}}" },
"isHeader": {{isHeader}},
"mandatory": {{mandatory}}
}
...
Let me know if this helps!
Kind regards,
Maxime
Hi Maxime,
thanks for your help! :)
Until now, it does not work. I did this:
{
"update": {
"labels": [
{
"add": "cloned"
}
],
"issuelinks": [
{
"add": {
"type": {
"name": "Cloners"
},
"outwardIssue": {
"key": "{{issue.key}}"
}
}
}
]
},
{
"fields": {
"customfield_14700": [
{{#issue.ChecklistFieldName}}
{
"name": "{{name}}",
"checked": {{checked}},
"status": { "id": "{{status.id}}" }
"isHeader": {{isHeader}},
"mandatory": {{mandatory}}
}
{{^last}},{{/}}
{{/}}
]
}
}
}
Sorry, I am not a pro :D
We are using the built-in checkbox field.
This automation rule is only for testing, I know, that I do not need automation for cloning one Issue :D
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Matthias,
From your screenshots, those are not the built-in checkbox fields, those are Checklist fields from our app Checklist for Jira. I only want to clarify.
I have modified your example to properly integrate the additional field in your existing JSON payload. Also, make sure you put your custom field name in 2 places (you only replaced it in one place in your example).
{
"update": {
"labels": [
{
"add": "cloned"
}
],
"issuelinks": [
{
"add": {
"type": {
"name": "Cloners"
},
"outwardIssue": {
"key": "{{issue.key}}"
}
}
}
],
"customfield_14700": [
{
"set": [
{{#issue.customfield_14700}}
{
"name": "{{name}}",
"checked": {{checked}},
"status": { "id": "{{status.id}}" }
"isHeader": {{isHeader}},
"mandatory": {{mandatory}}
}
{{^last}},{{/}}
{{/}}
]
}
]
}
}
It's worth noting that this only updates one field customfield_14700 and if you want to update two fields you should copy it again then replace both customfield_14700 to your other field id.
Kind regards,
Maxime
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.