The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

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

Hi @Drishti Maharaj 

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

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events