Can a Transisition I make available to the customer be hidden based on validation/conditions?

Calvin
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.
August 20, 2024

Hi all, basically I have this transition for the customer only, but I want it to appear only for one request type and not another.

I tried adding a condition in the workflow so that "Request Type" = "Request type name" but it seems to either always appear for both request types or for neither.

Was hoping to sanity check if maybe I'm doing the string compare incorrectly, or if customer transitions bypass validations/conditions.

Thanks!

2 answers

1 accepted

3 votes
Answer accepted
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.
August 21, 2024

Hi @Calvin 

I have tried using the Value Field Condition in the past with various options—such as name and ID—but it didn't work for me. However, I do know what does work. You can use a Jira expression-based condition and use the following expression:

customerRequest.requestType.id == 34

You can find the request type ID by looking at the URL of the request type form settings page.
Go to: Project settings -> Request types -> Click on a chosen request type; the URL contains the ID, e.g.:
https://example.atlassian.net/jira/servicedesk/projects/KEY/settings/request-types/request-type/34/request-form

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

I hope it will help.

Cheers

 

Calvin
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.
August 21, 2024

Thanks mate, I ended up taking the easy way out creating a normal field that I check against. But I know I will definitely need this in the future, so this is great. I've saved it on my side for use. Cheers

Like # people like this
1 vote
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 20, 2024

Hi Calvin,

Just to clarify, Conditions will hide the transition. Validators will still show the transition, but will fail with an error message if the Validator is not meet. 

Having said that, can you share a screenshot of the Condition you have created? 

Suggest an answer

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

Atlassian Community Events