Forums

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

Need to subtract custom field number from overall story points...

Sabareesh Kumar M April 28, 2025

Dear All,

"Previously i tried to convert the time logged in time tracking field into story points (and to capture them in the custom field with 2 decimal points)

Custom Field is Story Point Actuals

The reason for this conversion is to compare the Story point estimate field which is filled by the client and the story point actual (from the time log) and to see the SLA is breached or not. " This is working fine.

Now i wanted to subtract the minutes entered in another custom field and update the same in story point actuals field.

So basically, Story point actuals should show total hours logged from time tracking field-minutes entered in another custom field. (StoryPoints Actuals = Total Time - minutes from number custom field)

StoryPoint Actuals : "customfield_15178"
minutes from number custom field: customfield_16738

Code i tried and which is not working, which gives an error: Error while parsing additional fields. Not valid JSON. please help in correcting the code.

 

{
  "update": {
    "customfield_15178": [
      {
        "set": "{{#=}}ROUND(({{issue.fields.timetracking.timeSpentSeconds}} / 28800) - ({{issue.fields.customfield_16738}} / 60), 2){{/}}"
      }
    ]
  }
}

 

let me know if you need more info, happy to share..

Thanks in advance.
Regards,
Sabareesh

1 answer

0 votes
Sabareesh Kumar M April 29, 2025

issue sorted, thanks.

Suggest an answer

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

Atlassian Community Events