SQL query to list all projects that use WorkflowScheme id 123

Tayyab Bashir
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 7, 2017

Hi, 

I'm looking for an Sql query that lets me find all the projects that belong to a particular workflow. 

In total I needed a query that returns all the projects that are in Project Caterogy 'abc' and have workflowscheme id 123. 
I can get projects with category abc but Im unable to get the projects with particualr workflow. 

 

1 answer

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 7, 2017

Start with nodeassociation which links the workflow schemes to projects.

Select * from nodeassociation where sink_node_entity = 'WorkflowScheme' and sink_node_id = '123'

will give you the basics.  The category for projects is in the same table.

Suggest an answer

Log in or Sign up to answer