Table maps handle how data being shared out of ServiceNow is processed. Your outbound table map for Jira will require some field changes to ensure that data is mapped correctly when sent from ServiceNow to Jira.
Procedure
To get started with updating your table map, follow these steps:
Access the outbound table map
Log into your ServiceNow instance and navigate to Perspectium Common Documents > PSP Common Table Maps or simply type and then select Table Maps in the Filter Navigator on the upper left-hand side of the screen. Then, search for and then click into the table map of the table you are integrating. You can easily search for this table map by typing the name in the search window under the Name field.
Table | Table Map |
---|---|
Incident | Incident to Common Incident |
Change Request | Change to Common Change |
Add a new Field Map
In the PSP Table Field Maps, click New.
Set the Source Field as the column name from the Jira Project field you added to the Incident or Change Request table, e.g. u_jira_projects.
Then, set the Target Field as u_jira_projects. Click Submit when done.
Edit the Priority source field
Search for the Priority source field by entering "priority" in the search box below Source Field. Then, click the resulting record.
Check the Use Script check box, and enter the following script to the Source Script:
if (current.priority == "1") answer = "High"; else if (current.priority == "2") answer = "Medium"; else answer = "Low";
Then, click Update.
Edit the Category source field
Search for the Category source field by entering "category" in the search box below Source Field. Then, click the resulting record.
Check the Use Script check box, and enter the following script to the Source Script:
if (current.category == "1") answer = "High"; else if (current.category == "2") answer = "Medium"; else answer = "Low";
Then, click Update.