It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

SQL query to list all projects that use WorkflowScheme id 123

Tayyab Bashir Jul 07, 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 Jul 07, 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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in Off-topic

Disney Live Action Reboots: Are you for or against?

Happy Friday Everyone! Today marks the international release of Disney's live action version of the animated classic Aladdin. I know that this movie was met with some controversy of over cast...

134 views 19 8
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you