Is it possible to query a list of all issues and the watchers of each issue within a project?
Hello,
It would be like this:
SELECT * FROM jiraissue i, userassociation a, project p WHERE ASSOCIATION_TYPE = 'WatchIssue' and i.ID = a.SINK_NODE_ID and i.project = p.id and p.pley = 'youkey'
I am getting:
Msg 207, Level 16, State 1, Line 6
Invalid column name 'pley'.
SELECT * FROM jiraissue i, userassociation a, project p WHERE ASSOCIATION_TYPE = 'WatchIssue' and i.ID = a.SINK_NODE_ID and i.project = p.id and p.pkey = 'youkey'
SELECT
u.lower_username, concat(
p.pkey,
'-'
,issuenum
)<span> </span>
FROM
jiraissue i, userassociation a, app_user u, project p<span> </span>
where
association_type=
'WatchIssue'
and
i.id=sink_node_id<span> </span>
<span> </span>
and
i.project=p.id
<span> </span>
a.source_name=u.user_key
This query was perfect for what I need... you just need to change u.lower_username to u.lower_user_name. Thanks!
It looks like you're new here. Sign in or register to get started.