Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Automation: Take substring in summary

Edited

We receive requests through an email, and it always has the same structure:

Summary = Voicemail message (666666666> 7768) From: 666666666

I am creating an automation to extract that phone number and check if it exists among our clients.

In the JQL, I have used: project = SOPLEX AND summary ~ '{{issue.summary}}'

to obtain a list with that phone number in {{lookupIssues}} and perform the initial check.

However, in the Logging Action, I am trying to display the phone number like this:

The customer's phone number is: {{lookupIssues.substringAfter("From:")}}

and I am not getting the result: The customer's phone number is:

Is this how the substring is obtained, or is there another way?

Thank you in advance.

1 answer

1 accepted

0 votes
Answer accepted
Riley Sullivan
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.
Sep 25, 2023

Hello @Soporte 

 

Super close, and you were on the right track. For this scenario, you would not need to use lookup issue. You can just use the Jira smart value for the issue.

{{issue.summary.substringAfter("From: ")}}

The customer's phone number is: {{issue.summary.substringAfter("From: ")}}

 

Hope this helps!

And can I tell you to be a maximum of characters? that is, from "From: " +9 characters

Thx 4 all

Note: 

putting it in lookupIssues, is to then take a list of previous calls and assign previous values to the new issue

Riley Sullivan
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.
Sep 26, 2023

This is possible:

{{issue.summary.substringAfter("From: ").left(9)}}

 

There are a few ways you can mix some of these logics together from this article.

Perfect, thank you very much!

Like Riley Sullivan likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events