Hi,
I have an automation in which an new issues will be created during a certain transition.
During this action I would like to copy two different custom fields over to the new issue. These two custom fields are cascading fields.
I managed to copy a single field over by using
{
"update": {
"customfield_xxxxx": [
{
"set": {
"value": "{{triggerIssue.fields.customfield_xxxxx.value}}",
"child": {
"value": "{{triggerIssue.fields.customfield_xxxxx.child.value}}"
}
}
}
]
},
"update": {
"customfield_xxxxx": [
{
"set": {
"value": "{{triggerIssue.fields.customfield_xxxxx.value}}",
"child": {
"value": "{{triggerIssue.fields.customfield_xxxxx.child.value}}"
}
}
}
]
}
}
How do I get a second field in? Just repeat the above does not work. My knowledge on JSON is very limited.
Thanks for your advice
Laura
Try the following. I've tested it and works fine:
{
"fields":{
"customfield_xxxxx" : { "value": "{{triggerIssue.fields.customfield_xxxxx.value}}", "child": { "value" : "{{triggerIssue.fields.customfield_xxxxx.child.value}}"} },
"customfield_yyyyy" : { "value": "{{triggerIssue.fields.customfield_yyyyy.value}}", "child": { "value" : "{{triggerIssue.fields.customfield_yyyyy.child.value}}"} }
}
}
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.