Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Global Activity - SQL Request

Jonathan Smith
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.
May 30, 2018

Hi everyone,

  I am looking to obtain the SQL behind the scenes which generates the global activity graphs. My goal is to show a year activity view by modifying the date parameters.

Any SQL or note to the correct table would be great.

Thanks!

1 answer

0 votes
Gezim Shehu [Communardo]
Community Champion
May 30, 2018

 

EDIT ->> unrelated to question. This only applies to JIRA DB

 SELECT DISTINCT
p.pname,p.pkey
,i.issuenum,cg.issueid
,cg.ID ,cg.AUTHOR,cg.CREATED
,ci.FIELDTYPE,ci.FIELD
,ci.OLDVALUE,ci.OLDSTRING
,ci.NEWVALUE,ci.NEWSTRING

FROM
changegroup cg
INNER JOIN jiraissue i on cg.issueid = i.id
INNER JOIN project p on i.project = p.id
INNER JOIN issuetype t ON i.issuetype=t.id
INNER JOIN changeitem ci on ci.groupid = cg.id AND ci.FIELDTYPE='jira' AND ci.FIELD='status' 

WHERE
p.pname = 'project name
AND t.pname = 'issue type name'
AND ci.oldstring = 'old status name'
AND ci.newstring = 'new status name'

 

 

Jonathan Smith
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.
May 30, 2018

Thanks @Gezim Shehu [Communardo]. I am however looking for Confluence results.

Gezim Shehu [Communardo]
Community Champion
May 30, 2018

LMAO so sorry.

Didn't really see the labels, as I usually have them defined in my feed (not today though :) )

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events