You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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
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:
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Glad it helped to answer your question. Thank you for accepting the answer. Will be helpful for future reference.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.