JEP data storage

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

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 Join to answer

Stay in touch

Be the first to know what's trending on Atlassian Community