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

Accepted Answer
1 vote

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);

Thank you guys

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Thursday in Marketplace Apps

You + one app + a desert island...

Hi all! My name is Miles and I work on the Marketplace team. We’re looking for better ways to recommend and suggest apps that are truly crowd favorites, so of course we wanted to poll the Community. ...

1,536 views 4 6
Join discussion

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