Forums

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

Extracting input from a custom field

Akinola Oke
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!
June 8, 2026

I have a custom field which contain both text and number in this form "sehr unwarsch., 1", however I would want to extract the number at the end and populate it into another custom field.

What argument would be appropriate in this case? Should the custom field name be used instead of the customfield number.

Would this be appropriate {{issue.customfield_12200.substringAfter(",").trim()}} as I am not getting the expected result.

Or is it more appropriate to use the custom-field name itself.

 

3 answers

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 Champions.
June 8, 2026

Hi @Akinola Oke -- Welcome to the Atlassian Community!

When you describe not getting the expected result, what do observe happening?

Perhaps if you post images of the following, those will provide more context for the community to help:

  • an image of the complete rule in a single image for continuity
  • an image of the rule action where that smart value expression to extract the value is used
  • an image of the audit log details showing the rule execution
  • and, what is the type of the destination field into which you want the number stored?

 

Kind regards,
Bill

0 votes
Sam Okell
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 Champions.
June 8, 2026

A much simpler way:

 

{{issue.customfield_12200.right(1)}}

 

It'll just give the last character.

You could also add a check, in case the last character is a space, which if it is then this should work:

{{issue.customfield_12200.right(2).left(1)}}

0 votes
Florian Bonniec
Community Champion
June 8, 2026

Hi @Akinola Oke 

 

Have you try {{issue.customfield_XXXXX.split(", ").last}} ?

You can use the field ID in that case.

Regards

Suggest an answer

Log in or Sign up to answer