Hello,

I'm trying the Jira Enhancer Plugin. I've just added a CF Last User Commenter, but I can't find any entry in the database (not in CHANGEITEM, not even CUSTOMFIELDVALUE) to make KPIs on it

Thanks

3 answers

1 accepted

1 vote
Tuncay Senturk Community Champion Apr 11, 2013

Hi

All JIRA Enhancer Plugin custom fields are calculated custom fields.

This means that they are not stored in database, they are calculated from issue's actions.

However, you can get KPIs automaticcaly via REST API.

For example by getting JSON form http://example.com/jira/rest/api/2/issue/issue-key returns a value of "customfield_10860":"2012-05-18 14:46:18.0"

Regards

Tuncay Senturk

I guess the information you are looking for stands in JIRAACTION with ACTIONTYPE ='comment'

And here is how to select it:

select  i.pkey, a.updateauthor lastcommentedby, a.updated lastcommented 
from jiraaction a, jiraissue i 
where a.issueid = i.id
and (a.issueid, a.updated) =(select issueid, max(updated) 
                            from jiraaction 
                            where actiontype ='comment'
                            group by issueid);

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Tuesday in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

108 views 0 2
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you