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: how to extract a word from description

The issue description is like the one in the example below.

I'd like to extract word2 after Section.

Which expression can I use? 


Device
word1

 

Section
word2

 

Area
word3

1 answer

1 accepted

1 vote
Answer accepted
Sanjog Sigdel
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Oct 10, 2023

Hello @Antonio Calì 

Here is one function to manipulate the text using jira smart values.

If you want to get the texts after word2 section than use this function:

substringAfter( String separator)

Returns the text after the first occurrence of the given separator.


{{issue.summary.substringAfter("word2")}}

Input : This is the word2 reporting about an issue!
Output:  reporting about an issue!

For more information, see this reference from atlassian documentation: StringUtils.substringAfter(String).

Hello  @Sanjog Sigdel  thanks for your reply, so if I want to extract  "word2" right below "Section" I can use:

{{issue.summary.substringAfter("Section")}}

 

The output looking at my sample issue Descripion will be: word2

Like Sanjog Sigdel likes this
Sanjog Sigdel
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Oct 10, 2023

Yes you can. Though this will be a task specific automation. For ever new word you want to separate the summary, you should create a new automation action.

Sanjog Sigdel
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Oct 10, 2023

It doesn't work, I suppose because word2 is in a newline below Section

Like Sanjog Sigdel likes this

sorry, I was wrong. It extracts everything obviously after Section:

Output: * word2 *Area* word3 *

 

I'll try:

 substringBetween(String open, String close)

 

to get only word2

Like Sanjog Sigdel likes this
Sanjog Sigdel
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Oct 10, 2023

Glad it helped to answer your question. Thank you for accepting the answer. Will be helpful for future reference.

Suggest an answer

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

Atlassian Community Events