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!
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.