I realise there are two or three previous threads on this but I've (carefully) applied their advice and it's still not working :D
I'm automating creating a new ticket when a ticket changes workflow status. I want to copy across a custom field with a numeric value to the new ticket. Here's the code I'm using:
{
"fields": {
"parent": {"id": "28996"},
"customfield_10413":"{{issue.customfield_10413}}"
}
}
(The "parent" setting is irrelevant but included just so you can see the full code)
In the automation logging, I get the following error:
In the names page for the ticket, the custom field value appears as follows:
"customfield_10413":4.0
Can anyone advise please?
Hi @Mark -- Welcome to the Atlassian Community!
Have you tried using this syntax to get the value of the field: {{issue.customfield_10413.value}}
Kind regards,
Bill
First, confirm that the type of this custom value is indeed numeric.
If so, I suspect the value (to the right of the colon) should not be quoted. See:
Consider testing this by hardcoding the JSON with a simple number, to see if that works. If it does, then focus on the smart value syntax for the value (without quotes).
"customfield_10413": 4
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.