Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

get workflow relate to single Project

Milind Mehta September 2, 2015

Hi All,

i want all Workflows which uses under single Project. i have project id.

https://docs.atlassian.com/jira/latest/com/atlassian/jira/workflow/WorkflowManager.html

i refer above link but can't find any specific method or relevent  method.

if One project have using two workflow i should get two workflow.
and that all workflow is must be active.
  and another question is that is workflow is worked by Name or Possible By ID.
because i tried lot but can't get workflow ID.

i will be thankfull to you if you answer this. thank you very much in advance. 

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Tuncay Senturk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 2, 2015

In addition to Nic's answer, I could not find any way to get Workflow ID either. 

This is really annoying but as you can see here, there is no getID() method

1 vote
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.
September 2, 2015

WorkflowManager has a getWorkflow function that you can give a project ID and issue type ID to and it will get the workflow for that project/issue-type.  You'd need to iterate over the issue types in the project to get all of them.

TAGS
AUG Leaders

Atlassian Community Events