Forums

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

Is there a way to pull just the a part of that field for automation?

Liz Phi October 8, 2024

Is there a way to pull out the string value of that JIRA field? Right now, it's coming over in automation {"rows":[["12345","12345-BUILDING1"]],"ts":1728065614679,"rowNo":1}. I just want to strip out the middle piece "12345-BUILDING1" for my automation messages.

 

1 answer

1 accepted

0 votes
Answer accepted
Vijay Dadi
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.
October 8, 2024

Hello @Liz Phi ,

Jira offers wide range of string operations using smart values, use the one which suits your requirement.

Automation smart values - text fields | Cloud automation Cloud | Atlassian Support

Vijay

Liz Phi October 10, 2024

Hi @Vijay Dadi - I finally got the between function to work, but I can't get it to pull just the data between the quotation marks. Is this even possible.

for example - I got it down to "12345-TEXAS" 

is there a function to remove the quotes?

Vijay Dadi
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.
October 14, 2024

Yes, you can use replace/remove function.

Ex: {{issue.summary.replace(""","")}}

{{issue.summary.remove(""")}}

Try this 

Vijay

Liz Phi October 14, 2024

@Vijay Dadi  - I tried both of those and neither of them worked

Vijay Dadi
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.
October 14, 2024

let me try

Vijay Dadi
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.
October 14, 2024

{{issue.Summary.replace("\"","")}} - this worked for me. Give it a try.

need to use escape sequence for ".

replace.png

Vj

Liz Phi October 14, 2024

 - that worked! Thank you so much! I would have never figured that one out.

Vijay Dadi
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.
October 14, 2024

guess you tagged a wrong account, accept the answer if it helped you to solve your question.

Vijay

Liz Phi October 14, 2024

@Vijay Dadi - sorry about that - thank you so so much!

Like Vijay Dadi likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events