Scripted condition: checking if a certain component is included

Jason Ding November 13, 2015

We have a workflow where issues move from Development Complete to Feature Complete.  We want to make it so that a set of users are notified whenever an issue moves through this transition, except if the issue has a certain component (called 'PDR'). I think it's the core JIRA component field, which can hold multiple components, but am not sure (I'm fairly new to JIRA).

I'm trying to do this by creating two transitions, with different conditions.  One has a notification in the post condition, and one doesn't.

First transition: 

issue.components*.name.contains('PDR')

Second transition:

! issue.components*.name.contains('PDR')

The first works, but the second doesn't seem to work.

Can anyone tell me what I'm doing wrong?  Thanks!

1 answer

0 votes
JamieA
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.
November 13, 2015

Did you mean to tag this jira-cloud? Your conditions look ok to me, but what version of JIRA is this?

Suggest an answer

Log in or Sign up to answer