Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automation for Issue created trigger doesn't work when I am made assignee

Michelle November 2, 2023

I have an automation rule created where a new issue is created on my board if an issue not on my board is assigned to me.

However when an issue (trigger issue) on another board is assigned to me, a new issue is not being created on my board

Even stranger is that I get an email telling me the trigger issue has been assigned to the owner of the board on which the trigger issue resides - when I view the issue it is clearly assigned to me

Rule.jpgNot created on my board.jpgTrigger Issue.jpgWrong Asignee.jpg

1 answer

0 votes
Valerie Knapp
Community Champion
November 2, 2023

Hi @Michelle , thanks for your question.

Would you mind sharing an anonymised version of your rule please? I don't understand very well what it is you are trying to do.

I think seeing the rule might help us give you some suggestions for how to improve / get it working. 

Thanks!

Michelle November 2, 2023

Export of json below -= screen shot of rule also attached


{
"cloud": true,
"rules": [
{
"id": 15925693,
"clientKey": "eb7fbc37-07f5-358b-a0ba-c460cd3e5b25",
"name": "Create issue on Michelle Board",
"state": "ENABLED",
"description": "",
"authorAccountId": "5bc0b2f3da617e7586b87004",
"actor": {
"type": "ACCOUNT_ID",
"value": "557058:f58131cb-b67d-43c7-b30d-6b58d40bd077"
},
"created": 1698924360575,
"updated": 1698926612268,
"trigger": {
"id": "347835762",
"component": "TRIGGER",
"parentId": null,
"conditionParentId": null,
"schemaVersion": 1,
"type": "jira.issue.event.trigger:assigned",
"value": {
"eventKey": "jira:issue_updated",
"issueEvent": "issue_assigned"
},
"children": [],
"conditions": [],
"connectionId": null
},
"components": [
{
"id": "347835763",
"component": "CONDITION",
"parentId": null,
"conditionParentId": null,
"schemaVersion": 3,
"type": "jira.issue.condition",
"value": {
"selectedField": {
"type": "ID",
"value": "project"
},
"selectedFieldType": "project",
"comparison": "NOT_EQUAL",
"compareValue": {
"type": "ID",
"modifier": null,
"value": "10094",
"multiValue": false,
"source": null
}
},
"children": [],
"conditions": [],
"connectionId": null
},
{
"id": "347835764",
"component": "CONDITION",
"parentId": null,
"conditionParentId": null,
"schemaVersion": 3,
"type": "jira.issue.condition",
"value": {
"selectedField": {
"type": "ID",
"value": "assignee"
},
"selectedFieldType": "assignee",
"comparison": "EQUALS",
"compareValue": {
"type": "ID",
"modifier": null,
"value": "5bc0b2f3da617e7586b87004",
"multiValue": false,
"source": null
}
},
"children": [],
"conditions": [],
"connectionId": null
},
{
"id": "347835765",
"component": "ACTION",
"parentId": null,
"conditionParentId": null,
"schemaVersion": 10,
"type": "jira.issue.create",
"value": {
"operations": [
{
"field": {
"type": "ID",
"value": "summary"
},
"fieldType": "summary",
"type": "COPY",
"value": {
"copyOptions": [],
"sourceIssue": "trigger",
"sourceField": {
"type": "ID",
"value": "summary",
"fieldType": "summary"
}
}
},
{
"field": {
"type": "ID",
"value": "description"
},
"fieldType": "description",
"type": "COPY",
"value": {
"copyOptions": [],
"sourceIssue": "trigger",
"sourceField": {
"type": "ID",
"value": "description",
"fieldType": "description"
}
}
},
{
"field": {
"type": "ID",
"value": "project"
},
"fieldType": "project",
"type": "SET",
"value": {
"type": "ID",
"value": "10094"
}
},
{
"field": {
"type": "ID",
"value": "issuetype"
},
"fieldType": "issuetype",
"type": "SET",
"value": {
"type": "ID",
"value": "10010"
}
},
{
"field": {
"type": "ID",
"value": "issuelinks"
},
"fieldType": "issuelinks",
"type": "SET",
"value": {
"issue": {
"type": "COPY",
"value": "trigger"
},
"linkType": "inward:10003"
}
}
],
"advancedFields": null,
"sendNotifications": false
},
"children": [],
"conditions": [],
"connectionId": null
}
],
"canOtherRuleTrigger": false,
"notifyOnError": "FIRSTERROR",
"projects": [],
"labels": [],
"tags": [
{
"id": 48502114,
"tagType": "IS_RULE_UPDATED",
"tagValue": "true"
}
],
"ruleScope": {
"resources": [
"ari:cloud:jira:8b112907-59b0-4000-bda7-07645e26b65b:project/10094"
]
},
"ruleHome": {
"ruleLifecycleHome": {
"locationARI": "ari:cloud:jira:8b112907-59b0-4000-bda7-07645e26b65b:project/10094"
},
"ruleBillingHome": {
"locationARI": "ari:cloud:jira-servicedesk::site/8b112907-59b0-4000-bda7-07645e26b65b"
}
},
"writeAccessType": "UNRESTRICTED",
"collaborators": [],
"billingType": "NORMAL"
}
]
}

Michelle November 2, 2023

@Valerie Knapp  added above

Valerie Knapp
Community Champion
November 2, 2023

Hi @Michelle , thanks for all the info.

Please can you clarify if these projects are team-managed or company-managed?

Michelle November 2, 2023

@Valerie Knapp  - I have found the issue. The rule needed to be set up on the board where the trigger issue resides - it's not a global rule

Like Valerie Knapp likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events