Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How do I, using JMWE connector, restrict "Linked Issues Status Validator" rule Edited

Hi I'm trying to write a "Linked Issues Status Validator" validation rule that only runs against a sub-task if a custom field on the sub-task is set to a specific value. Otherwise don't run the validation. 

Is this possible with a linked issue validation rule?

Kieran.

2 answers

1 accepted

0 votes
Answer accepted

Unfortunately, you can't do that with the Linked Issue Status Validator. You'll need to use the Linked Issues Validator instead, and test both the linkedIssue status and custom field in the Jira expression. Something like:

linkedIssue.customfield_12345.value != "An option value" || ["Status 1","Status 2"].includes(linkedIssue.status.name)

where customfield_12345 is the field ID of the custom field (assuming it's a single-select type field - otherwise, use the "Issue Fields" help tab to find out how to test your specific custom field) and "Status 1", "Status 2" the two statuses you want the sub-tasks to be in.

0 votes

Hi Kieran,

Is the sub-task the issue being transitioned, or are you trying to validate sub-tasks of the issue being transitioned (using the “is Parent of” link type in the validation configuration)?

Hi David,

Yes I'm trying to validate a sub-task of the issue being transitioned and i'm using the link type "is Parent of".

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you