Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Specify a number for the custom field (below 100,000,000,000,000)

Tyler.Burnett
Contributor
July 22, 2021

I'm trying to synchronise two fields in Jira automation via advanced edit. (I cannot use normal issue edit rules, the field is not avaliable) 

via this piece of JSON:

{
"fields": {
"customfield_11487": "{{issue.customfield_11588.asNumber}}"
}
}

 Every attempt and combination I've made always results in this error :
(Specify a number for the custom field (below 100,000,000,000,000) (customfield_11487))

Before anyone asks very obvious question, yes both fields contain numbers/decimal numbers.

Can someone help me understand why this isn't working? Thanks

 

4 answers

3 votes
Mike Savvin
Contributor
August 31, 2021

You shouldn`t use  "" 

Try

{
"fields": {
"customfield_11487": {{issue.customfield_11588.asNumber}}
}
Finn Merlett January 10, 2022

This fixed it for me! You don't have to use the customfield identifier either, using the actual name works fine. It's removing the quotation marks that is the key

Like Mike Savvin likes this
0 votes
Vish
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 13, 2025

What Mike mentioned helped me out. But, if you are creating an issue via an API webhook from another platform and encountering the same issue, my answer here might help.

To make it work with a webhook, use the following expression in Jira additional fields:

"Story point estimate": {{webhookData.Story_points}}

Make sure the story_points is an integer when sent via API. Of course, follow the header format provided in the Atlassian documentation of webhook.

 

0 votes
David Ashlock
Contributor
November 19, 2021

@Tyler.Burnett did you ever get this resolved?  I have the exact same issue....

Finn Merlett January 10, 2022

Try Mike's answer, that was the issue for me

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 23, 2021

What type of field is 11588 ?

Tyler.Burnett
Contributor
July 25, 2021

Good morning,

Both fields are of the same data type, I've illustrated the two fields down below.

Capture.PNG

 

The reason I'm doing this is because backbone refuses to sync to the 'Story Point Estimate' field, so I'm working around it via automation.

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 25, 2021

They are not the same "type" of field, both of them are their own type.

However, you might be able to make their data compatible by dumping the ".asNumber" function, that might be breaking it.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events