Controlling assignment via workflow for certain workflows.
I am familiar with the JS banner hack to remove this function and we used it for years, but have since started heavily investing in behaviours and it was causing issues so I've removed the banner script.
Script fragments doesn't seem to have the option to remove this.
I've disabled the assign-to-me module and it's still present.
We are on Server 8.5.
Specifically I am wanting to remove:
I know you just said you are familiar with the js-injection, but maybe its worth looking into this answer I posted for someone else.
The solution uses a scriptrunner web panel and css-injection via js to hide the link.
As there are conditions and locations you can set in web panels (to narrow down when and where it is executed), it might be interesting for you.
Thank you for the response. The Announcement banner hack I used before but it seems severely interfere with Behaviours, which at this point is required for our use cases.
The issue operations workaround is nice, but is global and disables more than just the "Assign to me" link. I do not want a global change to that degree. I am willing to remove "Assign to me" as pictured from the entire instance however I cannot disable the assign button globally. There are some projects that are less workflow driven and desire this functionality.
Our workflows in some cases actually validate issue ownership by team, and have many permission-based functions on them which in turn causes this "feature" causes an issue to become "stuck" on a workflow. I can always go in and get things back on track but just removing this entirely is our preferred solution.
Of course, the other option is to control this via your permission scheme. Remove that permission from most users and only change the assignee via the workflow. I don't recall off the top of my head if using built-in post functions respect the permission and would fail the transition.. but if it does, then use a scripted post function and impersonate an admin account for the duration of that function.
Now... that' getting pretty complex... but if you need to have some people able to manually assign some of the time, you would need to start managing the assignee in a custom field and copy the value to the assignee field using transitions.
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events