Forums

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

JSM Compare two values (by JWT) in JSM

Benjamin Zhou
May 14, 2026

My idea is: In JSM, I have a request type that need user to input "affected user" and "Approver", I would like to restrict that the "affected user" can not be the same as  "Approver".  In workflow I use JWT compare two values validator.  The issue is when I enable this rule, I can not submit this request, if the "affected user" = "Approver", it will show the error message, it is OK.  But if the "affected user" != "Approver", it also can not submit this request, it will also show the error message.

the field type of Affected user is assets objects. the field type of approvers is user picker(multiple user) - The field type can not be changed.

It is the first transition which is the "create" step.

Does anyone know how to fix this issue?

Screenshot 2026-05-11 103615.png

Screenshot 2026-05-11 103721.png

Screenshot 2026-05-11 104007.png

 

 

1 answer

1 vote
Arkadiusz Wroblewski
Community Champion
May 15, 2026

Hello @Benjamin Zhou 

Even if you flip the logic from = to !=, the validator is still trying to compare an Assets object reference to a list of User IDs, and those two just don't speak the same language.

Because "Approvers" is a multi-user field, a simple comparison usually isn't enough; you really need a way to check if the specific user tied to that Asset is contained in the approver list. Doing this right at the Create transition is also tricky because most automation hasn't had a chance to run yet. You'll likely need to resolve that Asset attribute to a real Jira account ID within the validator itself, or the system will keep throwing errors simply because it doesn't recognize the two fields as comparable data.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events