How can I view all the JIRA tickets I'm watching? - jira

I clicked watcher for many JIRA tickets, but I can't find a filter that shows me all the tickets I am watching. Can someone direct me to the right link or filter to look.

Type in the Jira issues search (Issues > Search for issues): key in watchedIssues()
or go directly to the URL, like to your JIRA domain http://<your-jira-domain>/jira/issues/?jql=key%20in%20watchedIssues()
There is also a gadget you can add to your JIRA homepage (dashboard): Watched Issues
From the top right button "add gadget", then on the pop-pup search for "watched" and you will get it.

If you open up a "New search". Then the filter below will show you, your watched tasks:
watcher = currentUser() AND resolution = Unresolved ORDER BY priority DESC, updated DESC
Hope it suits you :-)

Related

Epics in Jira whose Epic-Story Link is from specific project

I would like to find all epics that have "Issues in Epic" from a specific Project.
Current JQL:
project = FOO AND issuetype = Epic AND key in (FOO-1, FOO-2, FOO-3)
I can add and issueFunction in linkedIssuesOf("project = BAR and issueFunction in hasLinkType('Epic-Story Link')"), but it gives me epics which have other types of linked issues (eg. clones, related ..)
I was able to reproduce the described behavior.
These are all link types: Blocks, Cloners, Duplicate, Epic-Story Link, Gantt End to End, Gantt End to Start, Gantt Start to End, Gantt Start to Start, Parent-Child Link, Problem/Incident, Relates, Solves
It seems that Epic-Story Link is handled like a super type of some of the other ones during query evulation. That's just a suggestion and I dunno why this should be.
However, the following query should work for your purpose
project = FOO AND issuetype = Epic AND issueFunction in linkedIssuesOf("project = BAR AND 'Epic Link' is not EMPTY")
Why not just create a scrum board, import all issues you want to sort on and see which ones are empty opening the epics panel?

More Advanced JQL for Swimlanes and Fixversions on Sprint Board

I get by with basic understanding of Jira and JQL for the most part, but I would like to streamline a process.
Everytime I add a new fixversion I also have to add a new swimlane to our sprint board. I was hoping I could eliminate this by using a more advanced JQL query.
Instead of:
fixversion = 3.0.0
Use something like:
fixversion = "Current Sprint" AND is OPEN
The results should be that I never need to add new swimlanes when I open new fixversions, and only show fixversions that are still opened. I should also be able to display multiple versions in a sprint if that condition exists as well.
Thank you for your assistance!
You can use :
sprint in openSprints ()
Only available if you are using JIRA Agile 6.6
Documentation:
https://confluence.atlassian.com/jiracoreserver073/advanced-searching-functions-reference-861257222.html?_ga=2.141919090.1302349630.1507452194-702843776.1505580610#AdvancedSearchingFunctions-openSprints()
Hope it helps!
If you are using ScriptRunner you could use earliestUnreleasedVersionByReleaseDate().
See: https://scriptrunner.adaptavist.com/latest/jira/jql-functions.html

HTTP Link to JIRA advanced query

I have an advanced query in JIRA that I run a lot
assignee = currentUser() and resolution = 'Unresolved' ORDER BY priority DESC
I guess it is pretty self explanatory, I only get what I have to do by order of priorities.
How can I bookmark this query? I want to link directly to a page where that query is ran and not type it every time.
You can also look up in the top right corner next to views where there is a symbol like a chain link. That is a URL that you can book mark for a query
You should save the query first, then if you mouse over the link to the saved query you will get a url. Something like:
http://jira.mycompany.org/issues/?filter=11328

List of all jira tasks that I was assigner on

How can I get list of all tasks that I was assigned?
I just need to know all the tasks despite its current status or assignee.
Is it possible?
So here the answer to the changed question (tasks that I was assigned to):
Depending on the version of JIRA, you are now able to asked questions that go into history. See the example in the documentation and the documentation about the "WAS operator".
Your query should look like:
assignee WAS "wormhit" BEFORE "02/02/2011"
If you want to store your search (not the result), there are the following options:
Define your own filter by saving a search like the one as "Own issues". Steps:
Search > Edit > Issue Attributes > Assignee > Current User
Switch on the top to tab Summary
Under Operations, press Save it as filter
Give it meaningful name.
The filter is now available under Issues > Favorite Filters
You may store the shortcut for the search as a bookmark
General-purpose query for whichever 'current user':
assignee was currentUser()
This filter can be conveniently shared & anybody can put it on their dashboard, etc and it will return results specific to them.. Requires a not-too-old JIRA version, though.
This was my most-requested JIRA feature ever.
Yes. You can add a gadget "my tasks" to your dashboard.
Or you can use JQL like:
assignee = %yourname%
UPD To find tasks you WAS assigned, use JQL: "assignee was %username%"
By following this discussin I stumbled on HP/Palm Jira Search Plugin that can find what I'm looking for.
Go like this:
Issues -> search for issues -> Issue atrributes -> Assignee -> Current User -> Search

Issues commented by me in JIRA

As per JIRA documentation
http://www.atlassian.com/software/jira/docs/latest
The following filter will show the issues opned by me (Current User).
reporter = currentUser()
Is there a filer that will show issues commented by me? something like the following does not work...
comment by = currentUser()
if you know the name of the user (lets assume the name is Tom you can do:
issueFunction in commented("by Tom")
you can also filter it by date of the comment like:
issueFunction in commented("after -1d by Tom")
UPDATE: this requires ScriptRunner being installed in JIRA server (as JBert pointed out)
You can use the Activity Stream gadget with a filter configured by username and activity type. Note that this requires a case-sensitive username, not the friendly Display Name.
Activity Stream gadget configuration:
Filtered Activity Stream display:
(I posted a variation of this answer elsewhere but have improved my filter since then and the new filter is more salient to this question anyhow.)
You could also follow the approach presented by Matt Doar:
Use a participants field from the JIRA Toolkit plugin and query that
http://confluence.atlassian.com/display/JIRA/Advanced+Searching?focusedCommentId=229838922#comment-229838922
It's not a a complete answer but maybe a step in the right direction...
Francis
I had the same problem and
issueFunction in commented("by username")
worked for me
The following query identifies tickets in which current (or some other particular) user was mentioned in comments:
comment ~ currentUser()
The new scriptrunner can do lots of things e.g. find issues with comments issueFunction in hasComments(), find issues with comments that are not older than 7 days issueFunction in commented("after -7d") and also issue comments from users or groups.
Details can be found here:
https://jamieechlin.atlassian.net/wiki/display/GRV/Scripted+JQL+Functions#ScriptedJQLFunctions-commented(commentquery)
You can try that workaround I am current using this expression on my saved search:
comment ~ "your.username.here"
This in fact catch the comments where I was mentioned, but if you mention yourself probably should works. I have not tried by myself.
My current Jira is a cloud based one, so I can't tell you exactly which version is.
In JIRA v7.3.0, the watcher field works well, if autowatch is enabled:
watcher = currentUser()
How to enable
Profile > Preferences > Autowatch : [inhert, disabled, enabled]
Issues that you create or comment on will automatically be watched for future changes.
For filtering issues in which you have been mentioned, try comment ~ currentUser()
This (to my knowledge) cannot be completed using JQL, even with a plugin. If you have DB access, the query is simple:
SELECT pkey, summary FROM jiraissue, jiraaction WHERE jiraissue.id = jiraaction.issueid AND author = '<insert_jira_username>';
If you're talking only about the current user, there is a personal Activity Stream in your profile
https://xxx.atlassian.net/secure/ViewProfile.jspa
It includes actions other than comments, but does provide an RSS feed which you could filter only comments with:
<category term="comment"/>
This is the query to know the issues I am involved in:
SELECT a.pkey, a.summary FROM jiraissue AS a left join jiraaction AS b on a.id = b.issueid
where b.author = 'jira_username' OR a.REPORTER = 'jira_username' OR a.ASSIGNEE = 'jira_username'
group by a.pkey order by a.CREATED
This is the query to know all issues raised in the last 24 hours.
select REPORTER, SUMMARY from jiraissue
WHERE CREATED > DATE_SUB(CURDATE(), INTERVAL 1 DAY) order by CREATED DESC;

Resources