Check if issue assignee is the same person that submitted a form in JQL

Beth Woods February 21, 2025

Hi,

I'm hoping to use Forms in Jira issues to create a two step flow which requires a issue assignee to submit a form for a change request, and the another member of the team has to go in and approve it. 

To do this, I want to have an automation that triggers on the form submission, and checks if the person who submitted the form is the assignee of the ticket. 

If it is, that should transition the issue and send a slack message. 

However, I can't seem to find a way to do that. I'm guessing it should be something like 

{{issue.assignee.accountId}} = {{forms.last.submitter.accountId}} but I can't make that work.

I'm adding a field for 'requester' to the form, so maybe I have to compare assignee to this instead?

Screenshot 2025-02-21 at 10.45.33.png

1 answer

0 votes
Tomislav Tobijas _Koios_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 21, 2025

Hi @Beth Woods ,

If you're going to move forward with this approach where you have Requester field in the form, you could simply add field key within the form (e.g., "requester") which can be used within automation conditions > smart values condition.

2025-02-21_14-33-01.png 2025-02-21_14-33-13.png

If looking at the example above, you could compare values

{{forms.last.requester}} 

and 

{{issue.reporter}}

👉 I've tried using User condition here > something like the following, but it didn't work. This works as well. With this, you probably wouldn't need to use "Requester" field within the form.

An alternative solution to this one would be to use smart value condition and {{initiator}} smart value but the result is basically the same:

2025-02-21_14-36-52.png 2025-02-21_17-01-43.png

Hope this helps.

 

Cheers,
Tobi

Suggest an answer

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

Atlassian Community Events