Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Deleted user April 5, 2021

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

2 votes
Jona Ittermann [Decadis AG]
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.
April 6, 2021

Hi @[deleted]

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

wesley.segafredo April 8, 2021

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
AUG Leaders

Atlassian Community Events