Forums

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

Reporter cannot be Approver for Approval Process

Drishti Maharaj
Contributor
December 12, 2023

Hi,

I am trying to add a validator when an issue is created, that the user gets a prompt that the reporter cannot be the approver of the ticket as well.

The approver field is a multi-user picker field and I think that is the issue with the Jira expression that I am having.

This is what I attempted to use:

issue.reporter.displayName != issue.customfield_10003.displayName

However, when I test this is the error:

Evaluation failed: "issue.customfield_10003.displayName" - Unrecognized property of `issue.customfield_10003`: "displayName" ('displayName'). Available properties of type 'List' are: 'concat', 'every', 'filter', 'flatMap', 'flatten', 'includes', 'indexOf', 'join', 'length', 'map', 'reduce', 'slice', 'some', 'sort'

I am not to sure which property of this field I could use?

Thanks.

 

1 answer

0 votes
Marc - Devoteam
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.
December 12, 2023

Hi @Drishti Maharaj 

Are you using the default approvers filed or a new customer field, if its the default the following should work

issue.reporter.displayName != issue.Approvers.displayName

Drishti Maharaj
Contributor
December 12, 2023

Hi, it is a new custom field that we are using

Marc - Devoteam
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.
December 12, 2023

Hi @Drishti Maharaj 

If you would use issue.reporter.displayName != issue.<name of the custom field, not the ID>.displayName

Suggest an answer

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

Atlassian Community Events