Hide the Button Assign and Assign to me when a specific status is set

Hey there!

I would like to hide the Assign and the Assign to me button without losing their functionality. Let me explain...

We have a custom field (Owner). The Owner of a ticket is the person who is in charge of resolving an issue. The assignee of an issue (if owner != assignee) is the person who should answer a question that occured during reading / analysing the issue.

We configured a workflow for that (Request Information). The workflow works like this: The user presses the Request Information button, decides on the assignee and asks the assignee a question.

The assignee should answer this question via the workflow button (Provide Information) - not with the assign button. The Workflow then copies the Owner value to the assignee value.

Anyway, if the assignee is not the correct contact person, it should be possible to pass on an request to the correct contact person. Therefore, we use: Pass On Request (also custom workflow) where the user can choose the assignee.

I read about the workflow properties: https://answers.atlassian.com/questions/44943/can-i-remove-the-assign-and-assign-to-me-options-from-tickets-in-specific-statuses but these don't work well for my use case. They only work for the 'Provide Information' usecase, but not for the pass on request. The 'Provide Information' usecase copies the owner to the assignee field, so there is no direct assignment.

When using the properties for the 'Pass On Request' the user should be able to assign the issue to another user, but only via the 'Pass On Request' button, not the Assign / Assign to Me button. When i use the property jira.permission.assign.$group the assign button is hidden, but i can also not assign via the custom workflow button :(

Hence, I would like to know if there is any possibility to only hide those button, but not remove the functionality of the assign process.

8 answers

1 accepted

2 votes
Accepted answer

You will have to develop some custom code Javascript/Jquery.

Jira doesn't have by default the feature that you're looking for.

Sorry :(

Add little delay in your script execution using setTimeout() .. this might solve the problem

This does the trick. However, the assign button is still visible when the status has been changed. After a refresh of the page, the button is gone.

It is a solution, but not a very sexy one :(

Unfortunately, a delay doesn't help here, since the script (in the announcement banner) is not executed again after a workflow transition. So when opening the issue it's in a status where the buttons should be displayed, and then a workflow transition is executed and the buttons should be hidden after that transition.

FYI, currently we're testing with a modified version of this script:


Ok , then in this case how about using setInterval() .. I dont know if this will cause any performance issue . You can refer this post of mine

Thanks for the tip, that's a possibility. We'll need to test if there are any major drawbacks (since the script will be executed in small intervals, on every page of Jira..)

Hi Forian,

Did you have a chance to test it?

Hey, I'd go with a property associated with the workflow step. Haven't tried it though:


Jobin has a pretty good collection of workflow properties:


Cheers Christian

Thanks, but as mentioned in my question this is not helping me :)

This is very helpful if you just need to hide built in actions based on status. Thanks.

As workflow properties are not helping , you can hide it using javascript/Jquery,

You will need to write a script which will check for the issue status and accordingly hide the two buttons . You will need to paste this script in the announcement banner .

Can you give it a try by disabling the 'Assign' and 'Assign to me' button. You can disable it from here -

  • Login as JIRA Administrator
  • Go to Administration --> Plugins --> System Plugins
  • Click 'Manage Plugin Modules'
  • You can see 'View ops bar assign link' plugin module. Disable it.

Hope this is inline with what you are looking for!

Almost. This hides the Assign or Assign to me button for every step in the status. I only need it hidden for one specific status (Waiting for Information) and when an issue has another status the Assign action is allowed.

Thank you, though

I dont find that option- 'View ops bar assign link' plugin module in JIRA 6.0.2, any idea, in which module there are located?

Ah well we are using Jira 5.1

This has been mentioned in the question .

No solution yet? 

I'm dealing with the same issue. 



You can add a workflow property:

jira.permission.assign.denied = true

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,672 views 18 21
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you