-
Notifications
You must be signed in to change notification settings - Fork 0
/
Lab Sprint Started.json
1 lines (1 loc) · 3.92 KB
/
Lab Sprint Started.json
1
{"rules":[{"id":14966390,"clientKey":"lmjd428a973-ecac-311f-b8f6-a8bd0dcfc262","name":"Lab Sprint Started","state":"ENABLED","description":"When triggered by incoming webhook, the POST creates the sprint release. For each issue in the sprint, the issue is updated with the ISM sprint RecId, the PUT sets the corresponding release's Jira Sprint RecId and the PATCH links the issue release to the sprint release in ISM.","authorAccountId":"5f7f2ab8a2909600754ff716","actor":{"type":"ACCOUNT_ID","value":"557058:f58131cb-b67d-43c7-b30d-6b58d40bd077"},"created":1609785241897,"updated":1609785241897,"trigger":{"id":"30412693","component":"TRIGGER","parentId":null,"conditionParentId":null,"schemaVersion":1,"type":"jira.incoming.webhook","value":{"webhookToken":"d00ecea5edbc481e28f8fcc5ee51a611bbaa287e","searchOrProvide":"none","jql":null},"children":[],"conditions":[]},"components":[{"id":"30412694","component":"ACTION","parentId":null,"conditionParentId":null,"schemaVersion":1,"type":"jira.issue.outgoing.webhook","value":{"url":"https://ISM_TENANT_URL/api/odata/businessobject/releaseprojects","headers":[{"id":"_header_1609350820705","name":"Authorization","value":"rest_api_key=ISM_API_KEY"},{"id":"_header_1609350945027","name":"Content-Type","value":"application/json"}],"sendIssue":false,"contentType":"custom","customBody":"{\n \"TypeOfRelease\": \"JIRA Sprint\",\n \"Subject\": \"Sprint {{webhookData.sprint.name}}\",\n \"Scope\": \"Sprint name is: {{webhookData.sprint.name}}\",\n \"Status\": \"Active\",\n \"LAB_JIRASprintName\": \"{{webhookData.sprint.name}}\",\n}","method":"POST","responseEnabled":true},"children":[],"conditions":[]},{"id":"30412695","component":"BRANCH","parentId":null,"conditionParentId":null,"schemaVersion":1,"type":"jira.issue.related","value":{"relatedType":"jql","jql":"sprint={{webhookData.sprint.id}}","linkTypes":[],"onlyUpdatedIssues":false},"children":[{"id":"30412696","component":"ACTION","parentId":null,"conditionParentId":null,"schemaVersion":10,"type":"jira.issue.edit","value":{"operations":[{"field":{"type":"NAME","value":"ISM Sprint RecID"},"fieldType":"com.atlassian.jira.plugin.system.customfieldtypes:textfield","type":"SET","value":"{{webhookResponse.body.RecId}}"}],"advancedFields":null,"sendNotifications":false},"children":[],"conditions":[]},{"id":"30412697","component":"ACTION","parentId":null,"conditionParentId":null,"schemaVersion":1,"type":"jira.issue.outgoing.webhook","value":{"url":"https://ISM_TENANT_URL/api/odata/businessobject/releaseprojects('{{issue.customfield_ISM_RECID_ID}}')","headers":[{"id":"_header_1609355184832","name":"Authorization","value":"rest_api_key=ISM_API_KEY"},{"id":"_header_1609355288675","name":"Content-Type","value":"application/json"}],"sendIssue":false,"contentType":"custom","customBody":"{\n\"LAB_JIRASprintName\": \"{{issue.customfield_SPRINT_FIELD_ID}}\"\n}","method":"PUT","responseEnabled":true},"children":[],"conditions":[]},{"id":"30412698","component":"ACTION","parentId":null,"conditionParentId":null,"schemaVersion":1,"type":"jira.issue.refresh.issue","value":{"delayMs":null},"children":[],"conditions":[]},{"id":"30412699","component":"ACTION","parentId":null,"conditionParentId":null,"schemaVersion":1,"type":"jira.issue.outgoing.webhook","value":{"url":"https://ISM_TENANT_URL/api/odata/businessobject/releaseprojects('{{issue.customfield_ISM_SPRINT_RECID_ID}}')/ReleaseProjectAssociatedReleaseProject('{{issue.customfield_ISM_RECID_ID}}')/$Ref","headers":[{"id":"_header_1609355849069","name":"Authorization","value":"rest_api_key=ISM_API_KEY"},{"id":"_header_1609357668296","name":"Content-Type","value":"application/json"}],"sendIssue":false,"contentType":"empty","customBody":null,"method":"PATCH","responseEnabled":false},"children":[],"conditions":[]}],"conditions":[]}],"canOtherRuleTrigger":false,"notifyOnError":"NEVER","projects":[],"labels":[],"tags":[{"id":1010032,"tagType":"WEBHOOK_TOKEN","tagValue":"d00ecea5edbc481e28f8fcc5ee51a611bbaa287e"}]}],"cloud":true}