Copy tre-customfield value when clone a issue
Hi. I have an application to clone a issue, but the valuer of my tree-customfield doesn't copy. How can I do that? thanks
Comments (16)
-
repo owner -
I clone it with Automation for Jira
-
repo owner Can provide more info?
I could not find clone feature in this app https://marketplace.atlassian.com/apps/1215460/automation-for-jira-server?hosting=datacenter&tab=overview
-
Sure,.
I have the possibility
My tree-customfield is Zona Afectada
I can’t choose it
The issue clone action doesn’t. copy tree-customfield.
issue is a clone of GRACDP-969
https://confluence.atlassian.com/automation
https://confluence.atlassian.com/automation/actions-993924834.html#Actions-cloneissue
-
repo owner Try this:
customfield_10000 - id of tree customfield
-
The field is
I’ve wrote
{ "update": {
"Zona Afectada":[
{
"set": {"Id": { {issue.customfield_11209.id}}
}
} ]
}}
but it dowsn’t work
-
repo owner - "set": {"Id": { {issue.customfield_11209.id}} - use “id” instead “Id”
- remove the extra space between brace: "set": {"id": {{issue.customfield_11209.id}}
- still need to add quotes for “id“ value
it should look like this
{ "update": { "customfield_11209":[{ "set": { "id": "{{issue.customfield_11209.id}}" } }] }}
Your tree customfield has a single or multiple choice?
-
hi
{ "update": {
"Zona Afectada":[
{
"set": {"id":{ {issue.customfield_11209.id}}
}
} ]
}}the same result
-
repo owner For multiselect field try this:
{ "update": { "customfield_11209":[{ "set": {{issue.customfield_11209.asJsonObjectArray("id")}} }] }}
-
that’s fine. Thank you
-
sorry. There are a problem. when the field is empty then system return Not Valid Json
-
repo owner Try this:
{ "fields": { "customfield_11209": [{{#issue.customfield_11209}} {"id": "{{id}}"} {{^last}},{{/}}{{/}}] } }
-
Sorry, I have to put both ?
{ "update": { "customfield_11209":[{ "set": {{issue.customfield_11209.asJsonObjectArray("id")}} "fields": { "customfield_11209": [{{#issue.customfield_11209}} {"id": "{{id}}"} {{^last}},{{/}}{{/}}] } }] }}
-
repo owner no. Use “fields” attribute instead of “update“
-
thanks. It’s work perfectly
-
repo owner - changed status to closed
- Log in to comment
Hi! What is your application?
Standard clone action is works.