JIRA - Accessing Comments by Project Role

Paul Baylis August 24, 2012

We have Jira 3.13. We're writing to the API go get comments. Easily done.

However, is there a way to access comments that are meant for a specific visibility level or project role? e.g. We have developers that write comments in JIRA that aren't necessarily meant for clients to view. When developers write comments, they select a specfic option from the "Viewable By" drop-down on the comment form to write comments that only our company employees can see.

1 answer

0 votes
Harry Chan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 24, 2012

Comment level security is tied to the Security Levels of a project. You can create security levels and associate it to roles.

Harry Chan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 24, 2012

You need to create an issue security scheme, associate it with a project. For each issue security scheme you need to set issue security levels and map those levels to roles. Refer to https://confluence.atlassian.com/display/JIRA051/Configuring+Issue-level+Security for a detailed explaination.

Paul Baylis August 24, 2012

So, what does that mean exactly in terms of what I need to do?

Paul Baylis August 24, 2012

Yes, we created those levels already. I was asking how we get comments through the API - e.g. get only those comments that are viewable only by the "developers" role or some other role that we created. In the API, there is a getComments() method. But, there doesn't seem to be any way to filter those comments by who is allowed to view the comments.

Harry Chan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 24, 2012

There is a function in the API to get all comments that a particular user can see. Refer to this.

Suggest an answer

Log in or Sign up to answer