Hi everybody
I’m not sure if this is a bug or if I’m doing something wrong.
With my Forge Workflow Validator, I’m not seeing the error message I return.
Use Case
When creating a JSM ticket where approval is required, the requestor may not approve their own tickets
Manifest code
modules:
jira:workflowValidator:
- key: workflowvalidator-changeapprover
name: FORGE- Validate Reporter vs Approver
description: The Reporter and the Approver may not be the same person
expression: issue.customfield_10003 == null ||
!issue.customfield_10003
.map(entry=>entry.accountId)
.includes(issue.reporter.accountId)
errorMessage: A reporter may not approve their own work
app:
id: ari:cloud:ecosystem::app/587a30c3-0cc7-4675-af25-5a105d8c48aa
name: workflowvalidator_changeapprover
permissions:
scopes:
- read:jira-work
The expression is doing its job but I don’t see the error appearing anywhere. With Jira transitions, I’d see a flag popup on the bottom left of the screen, but with JSM, I just see the generic error message, regarless of the error I’m returning (see below).