User Tools

Site Tools


servicenow_jira_common_request

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
servicenow_jira_common_request [2018/02/25 22:25]
paul
servicenow_jira_common_request [2018/06/20 17:52] (current)
robert.fan
Line 22: Line 22:
   - Create a field map with **Source Field** as //​IssueType//,​ **Target Field** as //​@issue_type//,​ **Use Script** as //true//, and **Field Type** as //String//. Set the **Source Script** to <​code>​answer = "​Request";</​code>​   - Create a field map with **Source Field** as //​IssueType//,​ **Target Field** as //​@issue_type//,​ **Use Script** as //true//, and **Field Type** as //String//. Set the **Source Script** to <​code>​answer = "​Request";</​code>​
   - Create a field map with **Source Field** as //​JiraProject//,​ **Target Field** as //​@JiraProject//,​ **Use Script** as //true//, and **Field Type** as //String//. Set the **Source Script** to <​code>​answer = gs.getProperty("​com.perspectium.siam.jira.project"​);</​code>​   - Create a field map with **Source Field** as //​JiraProject//,​ **Target Field** as //​@JiraProject//,​ **Use Script** as //true//, and **Field Type** as //String//. Set the **Source Script** to <​code>​answer = gs.getProperty("​com.perspectium.siam.jira.project"​);</​code>​
-  - Create a field map with **Source Field** as //​priority//,​ **Target Field** as //​priority//,​ **Use Script** as //true//, and **Field Type** as //String//. Set the **Source Script** to whatever you like to map your priorities to Jira priorities or use this example snippet of code: <​code>​if (current.priority == '1') { +  - Create a field map with **Source Field** as //​priority//,​ **Target Field** as //​priority//,​ **Use Script** as //true//, and **Field Type** as //String//. Set the **Source Script** to whatever you like to map your priorities to Jira priorities or use this example snippet of code: <​code>​if (current.priority == "1") { 
- answer = 'Priority 1'+ answer = "Priority 1"
-} else if (current.priority == '2') { +} else if (current.priority == "2") { 
- answer = 'Priority 2';+ answer = "Priority 2";
 } else { } else {
- answer = 'Priority 3';+ answer = "Priority 3";
 }</​code>​ }</​code>​
   - Create a field map with **Source Field** as //​provider//,​ **Target Field** as //​provider//,​ **Use Script** as //true//, and **Field Type** as //String//. Set the **Source Script** to <​code>​answer = "​servicenow";</​code>​   - Create a field map with **Source Field** as //​provider//,​ **Target Field** as //​provider//,​ **Use Script** as //true//, and **Field Type** as //String//. Set the **Source Script** to <​code>​answer = "​servicenow";</​code>​
servicenow_jira_common_request.txt · Last modified: 2018/06/20 17:52 by robert.fan