How to remove assign to me option in jira ?

Hi Team,

In Jira service desk we have an "assign to me" option on view issue screen, in this page we have two options to assign the issue i.e from using "assign" button and also "assign to me" option. I would like to remove only "assign to me" option on view issue screen. For this I tried two options i.e I added "jira.permission.assign = denied" property in workflowbut in this two assign buttons are removed and second option I tried is disable the view.issue.ops.bar.assign.link module in "issue operations plugin" (system plugins). But in this also two assign options are gone. So how can I achieve this customization. And also I would like to remove the "share this issue by emailing other users" icon also on view issue screen.

Thanks in advance,

Regards
Shyam.

2 answers

0 votes

The link is a convenience to make life easier for your users.  The only way to remove it without code change is to make the user un-assignable and/or unable to assign issues, which will of course affect their ability to be assigned or assign issues globally.

The share option is much the same, although there are no permissions involved.

Hi Nic,

I agree with your suggestion and we have tried convencing the customer on the same but there are not convenced. So we are looking for a way to get rid of that extra functionality. We have tried removing the code in system-issueoperations-plugin.xml and it worked in windows environment but not in linux environment. It would be great if you could lend your helping hands on this functionality.

Thanks,
Shyam.

I'm really not sure, I don't know why it would work in one OS and not another.

Are there other differences between the two systems?

Hi Nic,

Yes..we are also worrying with this, we have Jira7.3.4 version in windows os and in linux we are using Jira7.3.7, remainging things are same. Is the problem is version difference or any other. Please give suggestions on this.

Thanks,
Shyam.

I don't know.  I would not expect a version difference between 7.3.4 and 7.3.7 to affect this, but I would want to test it.

Ok Nic, please look into this customization.

No, I don't have time to fiddle around with a minor difference in coding for free.

On top of that, I really can't recommend you implement this, as I said before.

Hi Nic,

We added some code in announcement banner, it's working fine. "Assign-to-me" option is removed on view screen. 

 

Glad it'll be minimal complexity to remove this downgrade.  And very good that it won't affect your upgrades or support (hacking code does)

I tried to disable the "assign to me" function in JiraWebActionSupport.properties file. In this file I commented that function module, then the name "assign to me" changed to "'issue.operations.assign.tome.short" on view screen, after that I tried to disable the "'issue.operations.assign.tome.short" class in back-end code. I modified some files in back-end code. But I am unable to get the result. Please check the files that I modified in code.

  1.   ./atlassian/jira/atlassian-jira/includes/jira/field/templates/assigneeField.soy
  2.  ./ atlassian/jira/atlassian-jira/WEB-INF/classes/templates/jira/issue/field/assignee-edit.vm
  3.  ./atlassian/jira/atlassian-jira/WEB-INF/classes/system-issueoperations-plugin.xml
  4. ./ atlassian/jira/atlassian-jira/WEB-INF/classes/com/atlassian/jira/web/action/JiraWebActionSupport.properties
  5.  ./links/target/container/tomcat8x/cargo-jira-home/webapps/jira/includes/jira/field/templates/assigneeField.soy
  6. ./links/target/container/tomcat8x/cargo-jira-home/webapps/jira/WEB-INF/classes/templates/jira/issue/field/assignee-edit.vm 
  7.  ./links/target/container/tomcat8x/cargo-jira-home/webapps/jira/WEB-INF/classes/templates/jira/issue/field/assignee-edit.vm
  8. links/target/container/tomcat8x/cargo-jira-home/webapps/jira/WEB-INF/classes/system-issueoperations-
  9. plugin.xml

 

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 16, 2018 in Jira

Looking for anyone who made the switch to Data Center

The Jira Marketing team is putting together an ebook on migrating to Data Center. We're looking for pro tips on how you staffed your project team and organized your Proof of Concept. Share yo...

1,288 views 17 10
Join discussion

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