Forums

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

Scripting limiting comment updates based on date

James Malgieri
Contributor
August 11, 2020

Using JIra Server 8.5.5

We wanted to open up Comments to allow users to edit their own comments but would like to limit the editing to only recent comments.  For example: A user may edit their own comments but only those created in the last month.

Has anyone done anything like this using scripting? 

1 answer

0 votes
Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 13, 2020

Hello @James Malgieri

Thank you for reaching out.

I'm afraid Jira does not have a feature to prevent old comments from being edited and I'm not aware of any plugins/scripts that might give you this possibility.

That being said, you can try one of the options below:

  1. Although you can not restrict the comment update by time, you can do it based on the Status of the issue. In other words, you can configure properties is some workflow statuses to prevent comments from being edited when the issue gets transitioned to them (E.g: Closed status):
    Workflow Properties 
    Restrict editing of existing comments on closed issues 

  2. You can develop your own script to achieve it. The documentation to get started with Atlassian development is the one below:
    Set up the Atlassian Plugin SDK and build a project 
    To have more details about Atlassian development, you can reach out to our specialized forum for development questions:

    https://community.developer.atlassian.com/ 

    The mentioned portal was specifically created for development questions, where you will find articles and suggestions from other third-party partners and Atlassian developers. Feel free to open a new topic about your question there! :)

Let us know if you have any other questions.

Suggest an answer

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

Atlassian Community Events