Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Get part of field


I have an issue, I have many mails coming in my JSM and i would like to take the 5th line of these mail to put the text in another field.


I know that there is smart values like substringBetween etc but i don't know how to isolate a specific Line of the description field.

Moreover once i have this value how can i use it in the same automation ?

1 answer

0 votes
Alex Koxaras Community Leader Jan 11, 2022

Hi @joris raffin 

That's a tricky situation you got there. Now, I've run some tests and I'll lay out the main foundation for the solution I'm going to give you. I'm taking for granted, that when you say "5th line" you mean "5th NEW line". This simply mean that your emails (e.g. you want to take the 5th line of the email body (description)) has to have 5 lines, each separated with the "\n" new line. In that case, using the following smart value will get you the result you want:


Do let me know if that works out for you. 

Hi !


It works well ! thx you so much ;)

Alex Koxaras Community Leader Jan 11, 2022

Nice! Kindly mark my answer as accepted, in order to help other in the community to find proper answers. Thank you!

Actually i have another question :).


So i use your smart value to get an email and an name wich are in the description to create a customer. So it works well but now i would like to set the reporter of the issue with the customer i've just created but i can't do it.


get customer.png


May you help me ?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Service Management

JSM Jira Automation: How to Send SLA Breached Notifications

Hi Everyone, In   this tutorial,  we will show you how you can monitor an SLA, and send notifications before or after the SLA has been breached.   SLA Threshold Trigger The SLA t...

722 views 5 13
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you