Forums

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

JSM Project Automation - Updating a numeric custom field with the value from a smart variable

Daniel Wright September 19, 2025

Hi All,

I've tried scanning through the community pages but I can't seem to quiet find the right answer yet.

With JSM customisation I want to be able to put a points value to each ticket. I'm referencing another fields selection to determine how many points the ticket will get assigned to it, with this value added to a custom field of its own (which I will later use to the order tickets in filtered list view or queue). 

I have a automation rule that get the points value puts it into a smart variable, thats working great (outputs to comment confirms I have the number value) and I'm ready to assign this to the custom field setup.

Problem is that my points custom field (customFieldId_144) it is not available in the edit work item drop down, think because its a numeric value custom field?

I've tried reading up on the more fields section and providing the JSON but I'm going around in circles now as anything I take to copy and paste to try its just coming back with JSON error warnings.


Appreciate any support from the wider community on this one

2 answers

1 accepted

1 vote
Answer accepted
Matteo Vecchiato
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.
September 19, 2025

Hi @Daniel Wright ,

Thank you for your question.

Numeric fields are listed in automation update fields, so the cause is other, like:

  • Have you checked the custom field context? Maybe it is not applied to a specific project you are testing or it should be a global field
  • Check if the field is inserted in the edit screen (really this shouldn't affects, but just in case)
  • Refresh the automation webpage, it the field has been created after opening the automation, not all part are refreshed.

I hope it helps.

Regards 

Daniel Wright September 20, 2025

User error thank you for the guidance above, no more midnight automation coding for me :) 

Like Matteo Vecchiato likes this
0 votes
Oleksii Melnyk _MOY Apps_
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.
September 20, 2025

Hi @Daniel Wright

Jira can sometimes give errors about the JSON format.

Double-check that you're filling in the fields correctly according to the documentation. Atlassian doc: Advanced field editing using JSON 

For Number custom field it must be like:

"customfield_11444" : 664

So your JSON with smart value must be like

{"fields":{"customfield_123":"{{smart_value}}"}}

where {{smart_value}} = 1000 (for example)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events