Can specific text within a string in the labels field be pulled out to add to other field?

Steven Johnson September 26, 2022

Is it possible to pull out a specific part of a label within the Labels (or 1/2/3) fields in order to use that extracted text in another field?

To give context to what I am trying to do, if we had labels with a number then underscore then identifying word, like "1234_OrangeBucket" and wanted to be able to pull out just the "1234" from that label, then use that "1234" within the Summary field, so the story would be called "This Story is from the 1234 location". Is this possible or any ideas how something similar could be done?

Thanks in advance!

Steve

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.
September 26, 2022

Hi @Steven Johnson 

Yes, that should be possible using the smart value, text functions to extract from {{issue.labels}} https://support.atlassian.com/cloud-automation/docs/jira-smart-values-text-fields/

Please note that there could be multiple labels, and so you may need to iterate over that list field to find what you want.

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer