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

Is it possible to use a validator for one request type only?

Cindy Blanton April 21, 2023

I have a request type that I need to add a validator to.  The request type uses the same issue type and workflow of several other request types and I do not want to apply the validator to all of them; just the one request type.  When I configure the validator to require a certain field that is specific to the request type, it applies it to all request types even though they don't contain the field.  Hope that makes sense.  Is there any way to do this?  

2 answers

1 accepted

4 votes
Answer accepted
Fabio Racobaldo _Herzum_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 21, 2023

Hi @Cindy Blanton ,

validator, as you said, is at issue type level and it impacts all issue types defined in the workflow scheme. My suggestion is to create a specific issue type and map it with the request type. Then copy of workflow, apply your validator and edit the workflow scheme in order to map the new issue type.

Hope this helps,

Fabio

Cindy Blanton April 21, 2023

Thanks!  That does help!

David Harkins
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.
June 7, 2024

I also have the same requirement,

A new issue with a new duplicate workflow would lead to issues further down the line when attempting to keep workflows in sync.

As part of the Validation process, we should extract the name then make any checks for that request type within a singular workflow.

Just attempting to work out how best to get the Customer Request Type Value as part of a Validation Script.

Maciej Dudziak _Forgappify_
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.
June 7, 2024

Hi @David Harkins

It is possible with a Jira expression-based validator. I have just checked the following expression, and it blocks the transition for the selected request type when additional conditions are not met:

customerRequest.requestType.id == 34 ? issue.dueDate != null : true

There are several apps available on the Atlassian marketplace, that will allow you to do it.

I am from Forgappify, and we developed Jira Expression Validator, which is part of the Workflow Building Blocks for Jira free app. 

I would appreciate it if you could give it a try.

I am leaving a link to the app's documentation if you are interested.

Kind regards,

Maciej

 

1 vote
Joseph Chung Yin
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 21, 2023

@Cindy Blanton -

To supplement what @Fabio Racobaldo _Herzum_ suggested,  it is important to know that in JSM that  request type(s) uses Issue Type as the based, and WF setup is applied at the Issue Type level.

Hope this also helps.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Technology Applications Team

Viasat Inc.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events