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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you would use issue.reporter.displayName != issue.<name of the custom field, not the ID>.displayName
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.