Forums

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

Can I display transition and return error instead of hiding the transition?

정영환
Contributor
December 18, 2022

If I use conditions I can limit next transition to a user in a custom field(resolution owner in my case). Everyone else won't be able to see the next transition.

 

If I use validators everyone can see the next transition but I cannot limit the transition to a user in a custom field.  

 

Can I make the transition visible to everyone, but only users in a specific field can use that transition?  

 

 

3 answers

1 vote
Vamsi Kandala
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.
December 19, 2022

Hi @정영환,

You can set the property for the transition link where you want to limit changing the status between A to B.

You can use the property like

jira.permission.transition.userCF = custom field id (in this case, the Id of Resolution Owner, and assuming that it is a user picker field).

Hope this helps.

Thanks,
Vamsi

정영환
Contributor
December 19, 2022

2022-12-20 10_53_35-Transition Properties - Complete Design - Service Request Workflow for Jira (Dra.png

I changed the transition property like this and changed the custom field to a different user.

2022-12-20 10_56_50-[BPICS-6] TEST - Jira - Chrome.png


but it didn't stop me(Reno) from using that transition.  

Vamsi Kandala
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.
December 19, 2022

Hi @정영환

Can you update the property value to 'customfield_10097' and try?

Thanks,
Vamsi

정영환
Contributor
December 19, 2022

Thank you @Vamsi Kandala
but the property still doesn't affect the transition.

I checked the custom field id. The number is not wrong.
1.png

1 vote
John Funk
Community Champion
December 19, 2022

HIi @정영환 

Why do the transitions need to be visible to people who can't use them? They can always click on the View Workflow option to see the full workflow. 

1 vote
Sebastian Krzewiński
Community Champion
December 19, 2022

Hi @정영환 

 

What is a purpose that you want to display transition for everyone?

 

As I understand you validator and condition based on user picker customfield. 

Only solution as I see is using script runner fo jira cloud. In scripted validator you will be able to catch current user who is triggering transition and compare it with value in user picker customfield.

 

Regards,

Seba

정영환
Contributor
December 19, 2022

It will be the first time for our customers to use Jira Workflow and I want to reduce the confusion they will face, with everything visible and guided with error messages. I wish I could just train them with a demo session, but I'd like to avoid that effort.

Suggest an answer

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

Atlassian Community Events