How to find issues that at some point has been assigned to you?

后端 未结 12 1541
青春惊慌失措
青春惊慌失措 2020-12-04 05:48

We use Jira extensively in our project, but I often have a hard time finding issues, that I know, I have been working on earlier. Usually, if some case is reported, that see

12条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-04 06:36

    I tried the below SQL query and it gives data of all the issues and all the assignees that were ever assigned to an issue. Any change in the assignee for any issue is captured by below query:

    select distinct
    p.pkey +'-'+cast(ji.issuenum as varchar(max)),
    ji.SUMMARY,
    cast(ci.OLDSTRING as nvarchar(max)) as 'Old value',
    cast(ci.NEWSTRING as nvarchar(max)) as 'New value'
    from
    jiraissue ji
    join project p on p.id = ji.PROJECT
    join changegroup cg on cg.issueid = ji.id
    join changeitem ci on ci.groupid = cg.id and FIELD = 'assignee'
    

    Anyone looking for the query would find this useful : )

    -Neha 'D' Pal

提交回复
热议问题