Hello everybody,
There is any database table in JIRA has the mapping information between workflow, Issue Type and project?
I checked the database but I didn't find a table with association.
Could you please help me for this issue?
Mapping between project and workflow scheme (and other schemes) you can find in nodeassociation table. Then (knowing workflow scheme id used in project) you can find workflows assigned to issue types in this specific workflow scheme in workflowschemeentity table.
Similar topic: https://community.atlassian.com/t5/Jira-questions/the-relations-between-project-and-workflows-in-the-database/qaq-p/11249
Regards,
Seba
Thank you for your return.
This query shows the "workflow scheme" information not the "workflow" information.
However, it doesn't show the Issuetype information.
Regads,
AP
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.
The query indicated in the link above:
SELECT *
FROM PROJECT, NODEASSOCIATION, WORKFLOWSCHEME
WHERE PROJECT.ID = NODEASSOCIATION.SOURCE_NODE_ID
AND NODEASSOCIATION.SINK_NODE_ID = WORKFLOWSCHEME.ID
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Query from article was not good.
Try this one:
select n.source_node_id, w.scheme, n.sink_node_id, w.workflow, w.issuetype from workflowschemeentity w
join nodeassociation n on n.sink_node_id=w.scheme
where n.source_node_id=<project_id> and n.sink_node_entity like 'WorkflowScheme'
Now you need to know only project id and put in query.
Please let me know if it works for you.
Regards,
Seba
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Sebastian Krzewiński It doesn't work, this the error msg that I receive:
00936. 00000 - "missing expression"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What database do you have?
This query works in PSQL. You can easily change it if it is needed in other database.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@TAGNAOUTI KhaoulaI'm glad that it work :)
If you don't might please accept my answer so other users can see that this query is working ;)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Finally, I realized that I need a query for "issue status" instead of "issue type".
I oponed another topic if you could help me plz.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sure :)
Please paste link to new topic.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Sebastian Krzewiński , Thanks for the info..I see that the query you gave does not provide the issuetype name. I used all columns, no luck. Could you please help me relating workflows and issuetypes?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@HaRsHaS' VSure!
select n.source_node_id, w.scheme, n.sink_node_id, w.workflow, w.issuetype, isstype.pname from workflowschemeentity w
join nodeassociation n on n.sink_node_id=w.scheme
join issuetype isstype on w.issuetype=isstype.id
where n.source_node_id=<project_id> and n.sink_node_entity like 'WorkflowScheme'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Sebastian Krzewiński Thanks for the reply, is there any way we can capture the unassigned issutypes? Because I ve tried this query and the unassigned types seem to be left out..I checked few tables but no luck..
Any help is highly appreciated..and I have questions on 2 other queries..if you have time to answer.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What do you mean with unassigned issue types?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Sebastian Krzewiński , I meant all the issuetypes that are not associated workflow, so they tend to use the Default Workflow.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.