Forums

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

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
Community Champion
February 21, 2025 edited

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

Beth Woods February 24, 2025

Thanks @Tomislav Tobijas 

Unfortunately, this hasn't worked. I'll let you know if I find a solution.

Tomislav Tobijas
Community Champion
February 24, 2025

@Beth Woods hmm. I've tested this on our sandbox instance and it was all good. Feel free to share screenshots or your automation and audit log so maybe we can find what's the issue here.

Beth Woods February 24, 2025

Thanks @Tomislav Tobijas I managed to simply use Initiator = Assignee in the end:

Screenshot 2025-02-24 at 11.55.27.png

Like • Tomislav Tobijas likes this

Suggest an answer

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

Atlassian Community Events