We have several automations of the following format:
When: issue assigned
If: Assignee is one of [all members of a team]
Then: Edit issue fields: set Team to [the team]
However, you can preassign an issue to a user on the issue creation screen. In that case, it seems that the issue-assigned condition is not triggered.
As a workaround, I created another rule as follows:
When: issue created
If: Assignee is not empty
Then: Edit issue fields: clear Assignee
And: Edit issue fields: copy Assignee from current issue
This rule sets the issue to Unassigned, and then back to the original assignee, thereby triggering the issue-assigned rule to set the team.
This all works. However, recently, the second rule started sending an in-app notification saying "Automation for Jira unassigned you from an issue". This is annoying.
My questions are as follows:
1. Is it possible to suppress the notification? I already tried deselecting "this rule should send emails" and the Remove Watchers trick mentioned here. Neither helped.
2. I realize that I am asking about an X-Y problem here (X = trigger the first rule when a preassigned issue is created, Y = suppress the notification from the second rule), which is why I gave the full context. If there is a better way to do X then I am all ears.
Hi @Alex Burka
I recall there are several open suggestions about configuring issue event, notifications based on rule changes. Until one of those is implemented...
The fix for this is not unassigning the issue, and instead replicate the team-identification logic:
If you want to reuse the rule logic to set the Team field, you could create a third rule which is "called" from the other two:
To learn more about using the Send Web Request trigger this way, please see this article: https://community.atlassian.com/t5/Jira-articles/Automation-for-Jira-Send-web-request-using-Jira-REST-API/ba-p/1443828
Kind regards,
Bill
The webhook trick seems to work. Note that setting the request body to "Issue (Automation format)" or "Issue (JQL format)" did not work; the receiving rule claimed there was no issue in the body. I had to set a custom body as `{"issues":["{{issue.key}}"]}`.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.