Forums

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

Summary field value to custom number field

Urmo
Contributor
August 21, 2023

Hi

I have made automation what takes from Summary field out number value but today seems to be that it convert not the nicest way.

number converter.PNG

Behind this is automation Edit issue:

{{issue.summary.substringBefore("-")}}

I understand this problem is in here - https://jira.atlassian.com/browse/JRASERVER-7582 but is there any way that i take value from summary field and convert it to nice number?

There is isNumberic() https://confluence.atlassian.com/automation/jira-smart-values-text-fields-993924863.html but how i should but 2 things together into one?

1 answer

0 votes
Bill Sheboy
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.
August 21, 2023

Hi @Urmo 

What is the type of your field, Telefon?  It seems to be converting it because the field is a number type.

What format are you expecting?  If you are expecting plain text without commas you could use a text field instead.

Kind regards,
Bill

Urmo
Contributor
August 22, 2023

Hi

Right now Telefon is Number Field but i was thinking that maybe it is possible that somehow with automation for jira can take out number value and show it correct way without commas.

Urmo

Bill Sheboy
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.
August 22, 2023

Looking at the open suggestion / ticket, it seems the only work-around is to use a plain text field for this, or to investigate the Atlassian Marketplace for possible addon apps.

Suggest an answer

Log in or Sign up to answer