Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
Level
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

JWT: Validation that the Epic a new bug is created in is in the project selected?

Is it possible with JIRA Workflow Toolbox to add in validation when a user created a bug to check that the Epic Link's project matches the project selected? We are having issues with people creating issues in the wrong project.

1 answer

Hi @wesley_segafredo

this could be easily done using our Logical validator.

There you could use the following expression:

For JWT >= 3:

%{issue.issueType} = "Bug" implies first(fieldValue(%{issue.project.key}, epic())) = %{issue.project.key}

 For JWT < 3:

%{00014} = "Bug" implies first(fieldValue(%{00018}, epic())) = %{00018}

 

This way a linked epic in the same project is mandatory as soon, as a bug ticket get's created. So also if no epic get's linked on the Bug's creation, the creation would fail. If the check should only be done when there is really an epic linked, the expression would be:

%{issue.issueType} = "Bug" and count(epic()) > 0 implies ...

 

The configuration would look like this:

logical-validator.png

 

Cheers

Jona

Thanks! I got this implemented today and it works great!

Like # people like this

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