The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Martin Bayer _MoroSystems_ s_r_o__
Community Champion
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

DEPLOYMENT TYPE
SERVER
VERSION
8.5.4
TAGS
AUG Leaders

Atlassian Community Events