JIRA - Resolved by me query

前端 未结 12 1066
情书的邮戳
情书的邮戳 2020-12-14 14:34

How to write query that will select only issues resolved by me.

I have found some old post that says its no possible, but it might have changed.

12条回答
  •  春和景丽
    2020-12-14 15:34

    The answer most often given is to use JQL for something like

    status was Resolved BY currentUser()
    

    While all fine and good, this will give you back all the issues that you have ever resolved. That is, if you resolved issue FOO-1966 and then it got reopened and someone else resolved it again it is still an issue that was resolved by you.

    Here's a better way to do this in JIRA 6 and later (including JIRA onDemand).

    1. Create a custom field called "Resolver". Make it a person field but do not add it to any forms (unless you really want to).
    2. Edit your workflow and add a post function to the resolve issue transition in your workflow. Make the action "Update custom field" and set the Resolver to %%CURRENT_USER%%.
    3. Publish your workflow.

    Now whenever someone resolves an issue using that workflow, the Resolver field will get set to the current user. Now the Resolver field is semantically "last resolved by".

    As an added bonus, you can use the value in the Resolver field to reassign issues back to the person who resolved them when they get reopened. I'll leave this as an exercise to the reader. :-)

提交回复
热议问题