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
Accepted answer

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
Published Nov 29, 2018 in Marketplace Apps

How to set up an incident workflow from the VP of Engineering at Sentry

Hey Atlassian community, I help lead engineering at Sentry, an open-source error-tracking and monitoring tool that integrates with Jira. We started using Jira Software Cloud internally last year, a...

1,413 views 0 8
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