You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
I see a table called component which gives me the component IDs for a project (19130). In the JIRAISSUE table there is a component column but they are all null. I need to find the link between the issue and the component table.
It's going to be something like this:
SELECT ji.issuenum, na.sink_node_id component_id FROM jiraissue ji JOIN nodeassociation na ON na.source_node_id = ji.id AND na.sink_node_entity = 'Component' AND na.source_node_entity = 'Issue' WHERE ji.project = 19130
Hi,
I am using this tip but I still don't get the Component value, any other idea?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The component column is a hangover from older ways of doing
Have a look in "nodeassociation" - I can't remember the name of the lines you need, but one column will have the JIRA issue id, and another the component id, with the third column containing something like "componentlink"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Nic and Andrey,
I wanted to thank you both for all of your help with this.
Thanks,
Amber
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can use the below query to fetch the components for a particular issue in JIRA
Please specify the valid jira issue key for below query:
note: in my case jira issue key is 'TEST-171'
SELECT
(case when (LENGTH(CM.CNAME)>0) then CM.CNAME else ' ' end) AS COMPONENT
FROM JIRAISSUE JI, Project P, COMPONENT CM, NODEASSOCIATION NA where CM.PROJECT=P.ID AND JI.PROJECT = P.ID AND NA.SOURCE_NODE_ID=JI.ID AND NA.SINK_NODE_ID=CM.ID AND P.PKEY||'-'||JI.ISSUENUM= 'TEST-171'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Guys this is a big help, I am looking for something a little more simple however.
I would like a list of all component names in a project.
Any ideas?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Search the component table where project = the id of the project.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.