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

How to parse an issue status from comment field

serge calderara
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.
October 18, 2022

Dear all,

From an external email we are able to create a ticket issue in Jira Service Desk.
This external email syntax is used to communicate between Jira and an external system.

When the created ticket is set to COMPLETED from Jira Agent people, a notification is send automatically to the external system which need to approve that ticket is effectively resolved as completed

For that when the external system reply to the notification email, its reply body is with the syntax below :

FINAL STATUS : CLOSE

Then when the issue comment is updated, I need thought automation to :

- look for the string "FINAL STATUS"

- Read the value of the status 

 

How can I parse this string and get its value in order that with the status value read I can then transition automatically the ticket ?

Regards

 

 

 

2 answers

1 accepted

0 votes
Answer accepted
serge calderara
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.
October 19, 2022

Hello I solve it.

No need for any rest api as you did not catch what I ment.
All was done in Jira automaton and with filter condition and smart value I am able to catch the string and transition to the desired status based on return value

0 votes
Bill Sheboy
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.
October 18, 2022

Hi @serge calderara 

In order to transition the issue with an automation rule, I believe you need the specific status value's id.  To get that from the name you would need to call the REST API to get all of the status values for the project, and then grab the one which matches your name.

If you want to try this with Jira Cloud, here are some references on calling the REST API from a rule, the specific method you will need to get the status values, and how to filter/return the correct status:

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events