I realized that you can disable comments when transitioning from one status to another by setting the following property in the transition:
jira.permission.comment.user = false
I tried this approach when creating a ticket (e.g. Create) but it does not work. This propery probably does not exist before the issue is created so its understandable why it does not work. I want to use a Post Function approach by setting this property. Alas there isn't a "SetProperty" function. THere isa Script Post-Function available via Scriptrunner.
My question is will it work if I set the afformentioned property from a ScriptRunner Post-Function. I went ahead and tried adding the following inline script but it does not work.
System.setProperty("jira.permission.comment.user","false")
Ideally what I want is to disable commenting when the ticket is unassigned
Hi @t3knoid I do not think it is possible. Status property is set as part of Workflow EDIT process, changes must be published and what is worst, status property is relevant to all issues using the workflow (so it would be applied to all the issues, not only to the unassigned).
I think you could use Script Fragments (https://scriptrunner.adaptavist.com/5.5.9/jira/fragments/HideUIElement.html) (if you have Script RUnner installed). I tried it in outdated version, but it should be quite similar in the newer version.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.