We are using GitHub app for Jira Cloud and automations for commits&PR's. I'm using "When a commit is made → then move issue to in progress" automation rule. Also I want to add user condition for "user who triggered event" is equal to "issue assignee" but unfortunately automation fails at user condition with "The following issues did not match the condition". I tried to debug automation rule with Slack message(first thing come to my mind) by sending {{initiator.displayName}} and {{assignee.displayName}} but the initiator always returns empty. So what can be the issue here that I'm missing ?
Hi @Utku Demir -- Welcome to the Atlassian Community!
When you commit from some tool outside of Jira, it does not have the same user information, and so the {{initiator}} cannot be a Jira User.
There are open suggestions to improve the DevOps triggers to pass more information, such as the commit's author: https://codebarrel.atlassian.net/browse/AUT-1997 and https://jira.atlassian.com/browse/JSWCLOUD-21908
Until these are improved, perhaps a work-around could be to use the commit information and call the GitHub REST API from an automation rule web request to get the author information, and then try to get the user information using the Jira REST API. I do not know if that last part is possible after the GDPR changes (i.e. looking up a user from their email address).
Kind regards,
Bill
I see, thanks for the answer.
So until Jira give full support official GitHub app for automations maybe only way to achieve these kind of conditions is to use informations come with the api.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, and...even within Jira there are things that are not directly possible from automation rule actions. Using web requests to call the Jira (and other) REST APIs can help fill in those feature gaps. To learn more about calling a REST API from a rule, please see this article:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.