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

Is it possible to convert an email in json or script using autoations?

Lucas de Souza
Contributor
October 31, 2023

Is it possible to convert an email request on script, HTML or JSON with automation?

 

For example, we get emails from Windows Defender which comes with a lot of images and so on and we need only the summary and the information inside the :

View incident details: I need only this information

 

This text is inside the description field.

 

Thanks a lot.

1 answer

0 votes
Fernando Eugênio da Silva
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 31, 2023

@Lucas de Souza 

Not totally sure if this will works for you, but you can try use substring to get only the content you want. Something like this:

{{issue.description.substringAfter("View incident details").substringBefore("INSERT SOME LAST WORD")}}

PS.: I'm assuming that the content you want to 'fix' is comming to Description field

You can see more details about how to use Substring and others functions in this page: Jira smart values - text fields | Cloud automation Cloud | Atlassian Support

Hope this helps you.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events