I need to hide SLA div from issue view screen based on user role. Cause I don't want to expose internal SLA information to customers (cause we opened our JIRA URL for our customers). So, when the user belongs to the Customer role, I need to hide SLA div.
In order to achieve such result I tried to use Behavior ADD-ON. But, since JIRA Service Desk fields are not hideable, it was not possible to use such option.
After that, inspecting elements from issue view screen I identified the id of SLA div, which is:
<div id="sla-web-panel" class="module toggle-wrap">
...So I thought to use some JS as a possible solution.
The main problem is I'm not a good programmer...
So, could you please send me some JS codes to address this particular need? Thanks in advance. Best,
In fact I discovered my own need was to hide SLA div panel based on a specific group (not a role).
Due to that, I wrote the code below, put it into Summary description in the respective field configuration scheme and it worked properly.
Rest APIs are GREAT, specially if combined to JS.
Jesse, I think so, but you will need to check APIs library in order to localize Project Role availability. If not available, you will need to write a JS code using project role objects and collections to interact using an specific user. Please let me know whether such information will help you. Best regards, Michel Barros
We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...
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!
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