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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,560,388
Community Members
 
Community Events
185
Community Groups

How to count number of comments by assignee per issue with (extended) JQL

Hi everyone.

Does anyone know if there is a way to get a number of comments who's author is the assignee on a ticket. If possible, it would be great 

Basically, I want to make sure that assignee has left at least 2 comments per issue.

Thank you in advance,

Azur

2 answers

1 accepted

0 votes
Answer accepted
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 19, 2023

Hello @Azur Mujezinovic 

Have you installed a third party app that extends JQL capabilities? If so, which app?

Hello @Trudy Claspill ,

I currently have this Comment Custom Fields for Jira, but I understand that I can not accomplish my desires with this.

Before I would switch to some other add-on, such as ScriptRunner, I would like to make certain I can accomplish what I need.

Thank you,

Regards

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 22, 2023

So far I have not found a plugin that provides a filter to select issues by the number of comments authored by a specific user.

I found an old post in the eazyBI Community that indicated it could be done with their app. That may be applicable only to self-hosted Jira.

You could use a custom field and an Automation Rule to keep track of how many comments are added by the Assignee, incrementing the count for each comment as it gets added.

In Jira Automation I know it is possible to access the list of comments for an issue with the smart value {{issue.comments} and you can drill down to see attributes of each comment, like the author, but I haven't figured out how to use that the count the number of comments per author.

Using the REST API you could get all the comments for a given issue (and a separate API call to get the assignee of the issues) and parse through the results to see if the assignee authored two or more comments.

I have managed to make it work with custom field and Automation Rule.

In case someone would look for the same thing in the future : 

- Create a custom field (Number of comments by Jira assginee)

- Add that field to screens/projects that you want

- Create an automation rule : 

when : Rule is triggered on All comments

If : matches -> {{comment.author.displayName}} equals {{issue.assignee.displayName}}

THEN : edit issue fields -> {{#increment}}{{issue.Number of comments by Jira Assignee}}{{/}}

Thank you for your help ! Best regards.

0 votes
Sir Mārtiņš Vanags
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.
May 22, 2023 • edited

Hey @Azur Mujezinovic 

 

I'm Martins from eazyBI support team.

You could explore the solution with pre-calculated field imported in the eazyBI app

https://community.eazybi.com/t/calculating-the-number-of-comments-by-specific-user/1788/2

 

Martins / eazyBI

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events