What table is incident Priority located to use for script in Flow Designer

Craig65
Giga Contributor

We are using Integration Hub and Flow Designer to integrate ServiceNow and Jira. In our Flow to create a new Jira issue, Priority is only a choice and cannot be dragged over from the Trigger ServiceNow incident. I would like to setup a script to gather the ServiceNow Incident Priority and correlate it to the Jira Issue Priority. We are not sure of the specific table and fields for this Priority info or how to setup the needed scripting. Thank you.

1 ACCEPTED SOLUTION

Craig65
Giga Contributor
Below is the script we ended up using
 
/*
**Access Flow/Action data using the fd_data object. Script must return a value.
**example: var shortDesc = fd_data.trigger.current.short_description;
**return shortDesc;
*/
var priority = fd_data.trigger.current.priority;
var jirap;
if (priority=='1'){
jirap = 'Highest';
} else if (priority=='2'){
jirap = 'High';
} else if (priority=='3'){
jirap = 'Medium';
} else if (priority=='4'){
jirap = 'Low';
} else if (priority=='5'){
jirap = 'Lowest';
} return jirap;

View solution in original post

9 REPLIES 9

Dan H
Tera Guru

Hi Craig,

Your image link is broken, so I can't see the screenshot.

Could you update?

 

Hope this helps

 

Craig65
Giga Contributor

find_real_file.png

ersureshbe
Giga Sage
Giga Sage

Hi,

Can you check 'Priority Lookup' rule table to check the priority config.

Regards,

Suresh.

Regards,
Suresh.

Yes, that is the location of our Priorities.  How would I script that in Flow Designer so I can pull the info from the Incident and get it to flow to Jira?