{
"name": "Add links to the issues in a ScriptRunner Issue Picker field",
"description": "Add links to the issues included in a ScriptRunner Issue Picker field and delete them if the issues are removed from the field automatically.",
"creator": "admin",
"status": false,
"triggerData": "",
"triggerType": "FIELD_CHANGED_EVENT",
"configuration": {
"refs": [
"issue",
"system",
"trigger.issue",
"trigger.parent"
],
"fieldId": "10700",
"option": "any"
},
"children": [
{
"sequence": 0,
"type": "BOOLEAN_CONDITION",
"ruleEntityType": "CONDITION",
"configuration": {
"refs": [
"issue",
"project",
"system",
"trigger",
"trigger.issue",
"trigger.parent"
],
"expression": "%{trigger.issue.project.key} = \"CASE\"",
"expressionParsingMode": "logical",
"actingUser": "field_00020"
},
"children": [
{
"sequence": 0,
"type": "DELETE_ISSUE_LINK",
"ruleEntityType": "ACTION",
"configuration": {
"refs": [
"issue",
"project",
"system",
"trigger",
"trigger.issue",
"trigger.parent"
],
"issueLinks": [
"inwards_10003"
],
"destinationIssueSelection": "allIssues",
"destinationIssueSelectionIssueKeyParsingMode": "textAdvanced",
"actingUser": "field_00020"
},
"children": null,
"hasChildren": false
},
{
"sequence": 2,
"type": "BOOLEAN_CONDITION",
"ruleEntityType": "CONDITION",
"configuration": {
"refs": [
"issue",
"project",
"system",
"trigger",
"trigger.issue",
"trigger.parent"
],
"expression": "%{trigger.issue.cf10700} != NULL\r\n",
"expressionParsingMode": "logical",
"actingUser": "field_00020"
},
"children": [
{
"sequence": 0,
"type": "LINK_ISSUE",
"ruleEntityType": "ACTION",
"configuration": {
"refs": [
"issue",
"project",
"system",
"trigger",
"trigger.issue",
"trigger.parent"
],
"issueLinkType": "inwards_10003",
"destinationIssueSelection": "issues",
"destinationIssueSelectionIssues": "issueKeysToIssueList(%{trigger.issue.cf10700})",
"destinationIssueSelectionIssueKeyParsingMode": "textBasic",
"actingUser": "field_00020"
},
"children": null,
"hasChildren": false
}
],
"hasChildren": true
}
],
"hasChildren": true
}
],
"hasChildren": true
} |