Hi everyone,
We are using JMWE to make a validation using Jira expressions in our workflow.
What we want to do is to validate that a custom field (Paragraph type) has value, does not include images, account IDs (using @), links or bullet lists.
Currently we have:
!!issue.customfield_10171 && (
!JSON.stringify(issue.customfield_10171).includes("!image-") &&
!JSON.stringify(issue.customfield_10171).includes("~accountid") &&
!JSON.stringify(issue.customfield_10171).includes("https://") &&
!JSON.stringify(issue.customfield_10171).includes("http://") &&
!JSON.stringify(issue.customfield_10171).match("[\\*\\-\\+] ")
)
This works with links, but not for the account ids, images or bullet lists.
Anyone knows how to modify the expression to achieve what we want?
Thanks in advance!