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

后端 未结 12 1431
青春惊慌失措
青春惊慌失措 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

    0 讨论(0)
  • 2020-12-04 06:43

    Check out JIRA Toolkit plugin - Participants custom field

    https://studio.plugins.atlassian.com/wiki/display/JTOOL/JIRA+Toolkit+Plugin

    This field allows you to easily track issues that you've "participated in". These are defined to be any issues you've commented on, raised or are the current assignee. See also the [JIRA Extended Participants] plugin.

    0 讨论(0)
  • 2020-12-04 06:44

    try "assignee was username". it would get all tickets been assigned to the user before.

    0 讨论(0)
  • 2020-12-04 06:44

    You can find issues by worklog entries directly in the database:

    select distinct ji.pkey from jiraissue ji inner join worklog wl on ji.id=wl.issueid where wl.author='some_username';
    

    I agree this should be implemented in the UI though.

    0 讨论(0)
  • 2020-12-04 06:44

    For those that will be using JIRA 5+, there is also CHANGED operator that looks at the field changing to specific value within specific time range.

    assignee CHANGED TO currentUser() AFTER startOfYear() BEFORE now()
    

    More here: https://confluence.atlassian.com/display/JIRA052/Advanced+Searching#AdvancedSearching-CHANGED

    Just another way how to achieve the same result, but might be useful for other cases.

    0 讨论(0)
  • 2020-12-04 06:48

    Update

    This works without plugins:

    assignee was currentUser() OR reporter was currentUser() ORDER BY updated DESC
    

    The original answer

    This query worked for me:

    Participants = currentUser()
    
    0 讨论(0)
提交回复
热议问题