Want to map incident state to JIRA issue status through JIRA Spoke

sd2097
Tera Guru

Hi,

 

We want to map the state field from an Incident to an issue in JIRA using the JIRA spoke while using the 'Create Issue' action.

 

Regards,

Sudhangshu

 

 

7 REPLIES 7

BOC03
Tera Contributor

Hello, were you able to figure out this integration for this?

Mike Tharp
Tera Expert

You can't.  Issue status is set with a "Do transition" action. Create the issue with a "Create issue" action, then follow it with a "Do transition" action to change the status.

 

I use a subflow to convert between state <--> status so I can maintain it in one place, plus it simplifies my flows.  The subflow accepts both in separate input variables and depending on which one is set, it evaluates accordingly.  For example, if it receives a task state value, it sets the output variable to the matching Jira status. The output variable is set by running through some code containing a switch block that maps the state value to a corresponding status. This is used in a subsequent "Do transition" action on the flow that called it.

It worked! thank you so much.