Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Disabling comments after creating an unassigned ticket

t3knoid October 29, 2020

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

1 answer

1 vote
Martin Bayer _MoroSystems_ s_r_o__
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 29, 2020

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.

Selection_048.png

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.5.4
TAGS
AUG Leaders

Upcoming Jira Events