How can I disable editing da Request Type field?
I removed it from the Edit screen but, unlike other fields I removed, it can still be Edited.
Check the permission schema on that particular project - let just the "Browse Permission" for who you DON'T want to edit tickets.
I cannot remove the users from EDIT because they must be able to EDIT other fields.
I cannot understand why EDITING of this field is possible although it is not present in the Editable fields of this IssueType.
Did you ever find a solution for this? I am also trying to figure out how to force the Request Type field to be read-only.
I contacted Atlassian and, after quite a bit of testing, they confirmed that it is not possible to remove the editing of the Request Type.
The only solution is to remove the whole panel with a script in the announcement banner.
We did this and managed the editing of the Request Type with a transition screen.
Paul
@Patrick Eves , @Paul Wilkinson
I have found a solution that works for us.We use the Scriptrunner plugin, which allows us to deactivate inline editing with a small workaround.It's certainly not the best code but you can work with it ;-)
I have created a fragment (Show a web panel). Then i use it to manipulate the html by getting the html element from the request type and reading the name of the request type. Then I hide the element via css and insert a new span with the value on its parent.You can certainly also change the element. But I haven't tried that or I'm unsure because of other side effects. But on the whole it works.If anyone has a better code, please let me know :-)
Here is the code if someone wants to copy:
writer.write("<script>" + "document.addEventListener('DOMContentLoaded', function(event){" + "const requestType = document.getElementById('sd-request-type');" + "const parent = requestType.parentElement;" + "const newElement = document.createElement('span');" + "newElement.innerHTML = requestType.textContent;" + "parent.appendChild(newElement);" + "var css = '#sd-request-type { display: none; }', head = document.head || document.getElementsByTagName('head')[0]," + "style = document.createElement('style');" + "head.appendChild(style);" + "style.appendChild(document.createTextNode(css));" + "});" + "</script>")
It looks like you're new here. Sign in or register to get started.