Forums

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

How to hide transition or make transition can not move on when assignee is "Unassigned"

Kris Han
Contributor
April 28, 2019

Hi everyone,

Currently, i faced a problem when I work on Jira project which is how to make transition can not move on or hide the transition when the assignee is "Unassigned"? Please help me, thank you very much!

 

1 answer

0 votes
Ismael Jimoh
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 28, 2019

Hi @Kris Han ,

Look at adding a condition to your workflow transition you want to hide so that it only appears when the field in question is not empty.

Add the condition Only Assignee Condition (which in essence should ensure that the transition should not appear when the field in question is empty).

Save and publish your changes so it takes effect.

Cheers!

Kris Han
Contributor
April 28, 2019

Hi @Ismael Jimoh ,

Thanks for your help. May I know which condition section should I need to use for ? because I tried one before, but It looks not working. Thank you very much : )

Ismael Jimoh
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 28, 2019
  1. Edit your workflow.
  2. Select the transition you want to hide and click condition.
  3. Add a new condition which should show the image below:
    Screenshot 2019-04-29 at 08.54.22.png
  4. Select the Only Assignee Condition.
  5. Click add.
  6. Publish the workfow.

Now when you check your issue,  the workflow transition should not be visible without first adding an assignee. Also, only the person set as an assignee would be able to see the transition.

Cheers.

Like Deleted user likes this
Kris Han
Contributor
April 29, 2019

Hi @Ismael Jimoh ,

Thank you very much again. However, in your way, only assignee can see the transition but what I want is everyone can see the transition when assignee field is not "Unassigned". My idea is I want to require that someone take ownership before the task can be moved. Do you have any idea about this? Thank you very much!

Ismael Jimoh
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 29, 2019

Thanks for the clarification.

In this case, look at an add-on like:

  • Scriptrunner - (Allows you write a script that serves as condition)
  • JMWE - (provides a set of custom conditions and has a custom groovy script option as well, you will need to test) e.g. 
    issue.getAsString("assignee") != "" //Test this as I have not checked it but the logic is there
  • JSU - has a field value condition.

These 3 are some of the options that allow you expand what JIRA can do and in this case is necessary as JIRA out of the box cannot fulfil what you described.

Thanks.

Suggest an answer

Log in or Sign up to answer