Forums

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

Is it possible to copy numeric field value using JIRA automation?

Mykola Makhin
April 7, 2023

I'm trying to create an automation that would set custom field "Story points number" to the value of built-in field "Estimate[Number]", using code like this:

{
"fields": {
"Story point estimate": {{issue.Estimate.asNumber}}
}
}

But it doesn't work.

I've tried multiple variations, e.g.

{
"fields": {
"Story point estimate": {"id":"{{issue.Estimate[Number].asNumber}}"}
}
}

But always end up with JSON parsing error ("Error while parsing additional fields. Not valid JSON.") or with an error saying value is not a number ("ES-341 (Specify a number for the custom field (below 100,000,000,000,000) (customfield_10016))")

I've tried different variations with and without [Number] part in field name, using {"id":"{{issue.Estimate.asNumber}}"} etc - nothing worked.

I'm also not sure why "Story point estimate" is a custom field - I didn't create it, it appeared after I enabled "Estimates" feature.

What I actually need to do is to copy story point estimates from existing "Estimate" field to this new field/

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events