Hi all,
I need to copy the value of a custom field in another custom field. I am using jira automation. The trigger is manual, I tried a lot of ways:
or in the "other" configuration putting this simple json:
{
"fields": {"customfield_10034": "customfield_10088"
}}
but the automation fail with an error "Campi sconosciuti impostati durante la modifica. Questi campi potrebbero non essere disponibili per il progetto/tipo. Verifica la configurazione dei tuoi campi personalizzati. Campi ignorati -
Hi @Chiara Squilloni , thanks for your question.
I was able to get something to work -
Is there a reason you aren't using the ... to just do a copy from the specified field in the trigger issue, like this -
Or did you try this already and it didn't work?
Please give us your feedback and either I or someone else will try to help.
Cheers
Hi Valerie,
Yes, I tried also this but nothing change.
Chiara
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Chiara Squilloni , ok, thanks.
https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/
In the destinari email field, have you tried including the curly brackets-
{{issue.customfield_10088}}
^ like this?
Another thing I often try is to have an action to log the value of something like this {{issue.customfield_10088}} and then you can check in the audit log what is being retrieved.
Please can you test this and give us your feedback?
Cheers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Valerie,
I try also this
but doesn't work.
Can you please explain me the check on the audit log?
I have to modify the custom field on one issue manually and than check on the audit log?
Thank you,
Chiara
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Chiara Squilloni
When trying to use smart values to set the value of a field, as @Valerie Knapp noted the smart value has to be surrounded by curly braces.
Additionally, depending on the types of these fields you may need to use a different smart value reference.
What type of field is the source field, from which you are copying the data?
What types of field is the destination field, to which you are trying to copy the data?
For instance, if the source field is a User/People field, and you want to copy the user's email address to a text field, Then to get the email address attribute from the user field you would need to use
{{issue.<source field name>.emailAddress}}
Information about the smart values available for User/People fields can be found here:
https://support.atlassian.com/cloud-automation/docs/jira-smart-values-users/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Trudy,
one is Text Field (single line) and the other is Text Field (multi-line).
If I put
{
"fields": { {{issue.customfield_10034}}:{{issue.customfield_10088}}
}}
in the Json the error change and tells me that the json is invalid
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Which field is the single line and which is the multiple line?
Try as shown below - put double quotes around each smart value.
{
"fields": {
"{{issue.customfield_10034}}":"{{issue.customfield_10088}}"
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Chiara Squilloni
Regarding your last question about having changed to a Scheduled trigger and no actions getting executed:
Check the details of the trigger configuration. Do you have this box checked or unchecked?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you @Trudy Claspill
you made my day!!! I didn't saw this! Now all this work!
Thank you so much!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Chiara Squilloni
You're welcome!
If you problem has been solved with the help of my responses, please consider clicking the Accept Answer button. That will mark your post as Solved and help others searching the community find the posts with validated answers.
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.
The Accept Answer button is only at the top of an answer thread, not available on individual responses within the thread.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi dear @Trudy Claspill and @Valerie Knapp I have an update but I still have a problem.
I was triyng this automation on my sandbox and maybe there's something I didn't set about persmissions, also if I migrate the project from the production enviorment.
So I try in production environment and all works... but know I change the trigger, because I need to act on a set of issue that I find by a jquery.
So I change the trigger from manual to scheduled and I put the jquery that find more than 2000 issue, but wen I do "execute rule" or wait for the execution I find "no issue affected"... why?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Chiara Squilloni ,
Could it be this issue that @Trudy Claspill mentioned -
You could have a JQL search that returns a number of issues but if they haven't been updated, the automation wouldn't run.
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.