You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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
Hi Bill, thanks for your reply. Tried that a few times yesterday, just tried it again and got the same error message.
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.
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.
That's the one! Must have been the one combination I never tried - 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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.