JIra Spoke integration to on-prem Server

Ric Hermans
Tera Contributor

I created four different Catalog Items, each with different fields, but all four having "Jira Project". This fields references JIra projectKeys stored in ServiceNow.

The Catalog Items are supposed to create four different issue types in Jira (Access, Bug, Data Request and New Feature), defined by their "Category Item"  in the Requested Item record.

 

When using the "Create Issue" activity in a flow I know the Jira project, but only at runtime I know which type of issue needs to be created. Do I hard-code the value of the type or is there a way to figure this out at runtime?

Also, the Jira server has some additional mandatory fields for issue type "Bug" for instance. How can I add those mandatory field/value pairs to the "Create Issue" activity?

 

Screenshot 2023-12-07 at 17.09.11.png

 

1 REPLY 1

Hugo Gomes
Kilo Guru

I've been doing Jira integrations latelly and what I choose to do is to NEVER hardcode anything important.
I prefer to have a property and create an action just to get the value of certain things thatn hardcode.

In your case, I would create an action to get the value of the category, and, deppending on what is the result, having a different issue type.