JEP data storage

Luc Vandenboomgaerde April 11, 2013

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
Answer accepted
Tuncay Senturk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 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

0 votes
Luc Vandenboomgaerde April 11, 2013

Thank you guys

0 votes
Udo Brand
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.
April 11, 2013

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

Udo Brand
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.
April 11, 2013

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
TAGS
AUG Leaders

Atlassian Community Events