{
"_information":
{
"_version": "1",
"_source": "SAP Cloud ALM Task",
"_destination": "Jira Task",
"_name": "SAP Cloud ALM Task to Jira Task",
"_comment": ""
},
"switches": [
{
"name": "switchType",
"cases": [
{
"when": "CALMREQU",
"then": "Requirement"
},
{
"when": "CALMDEF",
"then": "Defect"
},
{
"when": "CALMUS",
"then": "User Story"
},
{
"when": "CALMTASK",
"then": "Project Task"
},
{
"when": "CALMTMPL",
"then": "Template"
}
],
"default": "Project Task"
},
{
"name": "switchLink",
"cases": [
{
"when": "CALMREQU",
"then": "ptmRequirement-management?sap-app-origin-hint=&tile=PTMREQ&"
},
{
"when": "CALMDEF",
"then": "ptmDefect-management?sap-app-origin-hint=&tile=PTMDEF&"
},
{
"when": "CALMUS",
"then": "task-management?sap-ui-app-id-hint=com.sap.calm.imp.tkm.ui&"
},
{
"when": "CALMTASK",
"then": "task-management?sap-ui-app-id-hint=com.sap.calm.imp.tkm.ui&"
}
],
"default": "task-management?sap-ui-app-id-hint=com.sap.calm.imp.tkm.ui&"
},
{
"name": "switchPriority",
"cases": [
{
"when": 10,
"then": "Highest"
},
{
"when": 20,
"then": "High"
},
{
"when": 30,
"then": "Medium"
},
{
"when": 40,
"then": "Low"
},
{
"when": 40,
"then": "Lowest"
}
],
"default": "Lowest"
}
],
"structure":
{
"request":
{
"fields":
{
"summary": "[SAP Cloud ALM ${SWITCH(switchType,type)}] #{title}",
"customfield_10049": "#{id}",
"issuetype":
{
"name": "Task"
},
"project":
{
"key": "RTP"
},
"description":
{
"type": "doc",
"version": 1,
"content":
[
{
"type": "paragraph",
"content":
[
{
"text": "Type: ${SWITCH(switchType,type)}\n\nProject ID: #{projectId}\n\nStatus: #{status} \n\nDescription: #{description}\n\nScope Name: #{scopeName}\n\nDue Date: #{dueDate}",
"type": "text"
}
]
},
{
"type": "paragraph",
"content":
[
{
"type": "text",
"text": "Direct Link",
"marks":
[
{
"type": "link",
"attrs":
{
"href": "#{@CLOUD_ALM_URL}/launchpad#${SWITCH(switchLink,type)}/taskDetail/#{id}"
}
}
]
}
]
}
]
},
"priority": {
"name": "${SWITCH(switchPriority,priorityId)}"
},
"labels":
[
"#{workstream}"
],
"assignee":
{
"accountId": "632adf49234d44d406cf77bb"
}
}
},
"response":
{
"displayUrl": "#{self}",
"externalNumber": "#{key}",
"externalId": "#{id}"
}
},
"eventTypeMapping":
{
"_comment": "Specific event type mapping",
"operationMappings":
[
{
"eventType": "TASK.CREATED",
"operation": "POST",
"responseRoot": "",
"externalIdProperty": "/id"
},
{
"eventType": "TASK.UPDATED",
"operation": "PUT",
"responseRoot": "",
"path": "/#{@CLOUD_ALM_EXTERNAL_ID}",
"structure":
{
"request":
{
"fields":
{
"description":
{
"type": "doc",
"version": 1,
"content":
[
{
"type": "paragraph",
"content":
[
{
"text": "Type: ${SWITCH(switchType,type)}\n\nProject ID: #{projectId}\n\nStatus: #{status} \n\nDescription: #{description}\n\nScope Name: #{scopeName}\n\nDue Date: #{dueDate}",
"type": "text"
}
]
},
{
"type": "paragraph",
"content":
[
{
"type": "text",
"text": "Direct Link",
"marks":
[
{
"type": "link",
"attrs":
{
"href": "#{@CLOUD_ALM_URL}/launchpad#${SWITCH(switchLink,type)}/taskDetail/#{id}"
}
}
]
}
]
}
]
},
"priority": {
"name": "${SWITCH(switchPriority,priorityId)}"
}
}
},
"response":
{
"ticketUpdated": true
}
}
},
{
"eventType": "TASK.DELETED",
"operation": "DELETE",
"responseRoot": "",
"path": "/#{@CLOUD_ALM_EXTERNAL_ID}"
}
]
}
}
Mapping | Description |
"customfield_10049": "#{id}", | A custom field has been in Jira to store the SAP Cloud ALM Task ID. |
" { "eventType": "TASK.CREATED", "operation": "POST", "responseRoot": "", "externalIdProperty": "/id" }, | The externalIdProperty property is defined in the response mapping of a creation event to store the ID of the Jira task in the built-in variable @CLOUD_ALM_EXTERNAL_ID. The value of the externalIdProperty should follow the JSON pointer syntax. |
"eventType": "TASK.UPDATED", "operation": "PUT", "responseRoot": "", "path": "/#{@CLOUD_ALM_EXTERNAL_ID}", | During a task update, we pass the Jira task ID as a path parameter with the built-in variable: @CLOUD_ALM_EXTERNAL_ID. |
"href": "#{@CLOUD_ALM_URL} | The parameter @CLOUD_ALM_URL is used to link the SAP Cloud ALM tenant from Jira. |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
9 | |
9 | |
8 | |
8 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |