How to get the link creation date between issues in JIRA?


When I link one issue with another by any relation (e.g. "Is Blocked by")

select * from ISSUELINK where SOURCE = 11246;
10701 10000 11246 11015 null

select * from changegroup where issueid = 11246;
ID ISSUE ID Author Created
11588 11246 admin 15/01/27


but I cannot see the relation between ISSULINK and CHANGEGROUP tables.

Does anybody know where to find it?



2 answers

1 accepted

The solution below:

SELECT AS link_id,
       lnktyp.linkname AS link_type, AS parent_id, AS child_id,
  FROM jiraissue chi,
       jiraissue par,
       issuelink lnk,
       issuelinktype lnktyp,
       (SELECT issueid,
               MAX(created) AS created
          FROM (SELECT grp.issueid,
                       SUBSTR(to_char(it.newvalue), instr(to_char(it.newvalue), '-') + 1) issuenum
                  FROM changegroup grp,
                       changeitem  it
                 WHERE = it.groupid
                   AND it.field = 'Link')
         WHERE issuenum IS NOT NULL
         GROUP BY issueid,
                  issuenum) hst
WHERE     = lnk.source
   AND    = lnk.destination
   AND = lnk.linktype
   AND hst.issueid  =
   AND hst.issuenum = par.issuenum;
0 vote
Boris Berenberg Community Champion Jan 27, 2015

A changegroup consists of entires in the changeitem table. I would look to see if it is in there.  

Thanks for the answer!

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,189 views 13 19
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot