Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Jira automation: assign user does not work with pull request trigger

I am trying to create an automation that assigns a user to an issue when a Pull Request is created, however, all the ways I tried so far leaves the user as Unassigned even though in the audit log, it shows that the automation was successful.

What's strange is that if I change the trigger to be Manual, then the assignment works. I've listed so far the various ways to assign the user below.

Option 1: Using the Assign User action [set it as User who triggered the event]

SCR-20231013-lmwu.png

Option 2: Using the Edit Issue action [set it as User who triggered the event]

Screenshot 2023-10-13 at 12.49.13 PM.png

Option 3: Same as Option 2, but [set it as {{ initiator.accountID }}]

Screenshot 2023-10-13 at 12.51.18 PM.png

3 answers

The audit log reports that the issue was edited successfully. Screenshot below is one where I had both the Assign issue and Edit issue actions enabled. Can see that the log shows it was ran without issue, but looking at the history within the ticket, no changes were made

Edit: disregard, meant to use this as a reply to another message

0 votes
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Oct 13, 2023

Hello @James Phan 

Welcome to the Atlassian community.

What is the output in the rule execution Audit Log for each of these attempts?

If you use the Log action to print the {{initiator.accountID}} smart value into the Audit Log during rule execution, what value do you get?

The audit log reports that the issue was edited successfully. Screenshot below is one where I had both the Assign issue and Edit issue actions enabled. Can see that the log shows it was ran without issue, but looking at the history within the ticket, no changes were made

Screenshot 2023-10-13 at 4.39.48 PM.png

 

Using the log action, it doesnt return a value. In the action, my input is: This is a message: {{initiator.accountId}}. You can see the output doesn't return the expected account

Screenshot 2023-10-13 at 4.53.31 PM.png

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Oct 13, 2023

Hi @James Phan and @Trudy Claspill 

That is curious...I would have expected the initiator to either be the Automation for Jira user or the person who created the PR.

I did find this defect indicating if a user does not have an email address in their public profile for Github matching their Jira profile, no match is possible for the PR actions.  Does that match your scenario?

https://jira.atlassian.com/browse/JSWCLOUD-23906

Kind regards,
Bill

Unfortunately, even changing my Github email to match that of my Jira profile and having it public does not fix the issue.

In fact, this is what I see in the logs when running the automation again. 

Screenshot 2023-10-16 at 2.57.52 PM.png

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Oct 16, 2023

Sorry, I am out of ideas to try.  Unless Trudy has more, I recommend working with your site admin to submit a support ticket to Atlassian for this one.  You appear to be on a Standard license and so the admin can do that here: https://support.atlassian.com/contact/#/

When you hear back from them, please post what you learn to benefit others in the community.  Thanks!

Suggest an answer

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

Atlassian Community Events