Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

[JIRA Plugin] GET specific Project object on workflowEvent listener invoked

Deleted user June 12, 2018

Hello folks,

I would like to get the project Id or key or object through event listener when I update the workflow status/event. Is there a API to get the details of a project for which workflow updated? It would be helpful if anyone point me with the example or links.

Currently, we are getting event and iterating over all the projects irrespective of a project for which workflow is updated.

 

Thanks

1 answer

0 votes
Aleksandr Zuevich
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.
June 12, 2018

Hi, 

As I understand workflow is relative to workflowscheme which is relative to project. I suppose you can find projects for workflow using ProjectWorkflowSchemeHelper#getProjectsForWorkflow method.

Deleted user June 20, 2018

Hi,

This API won't work out for me since it's providing all the projects available.

Lets say, when we add existing workflow for project [Sample]. I should get the workflow project_id or project object from the event WorkflowSchemeUpdatedEvent() for the particular project where I changed workflow scheme. 

suppose, if we change workflow scheme for particular issue type [Bug], then we should get issue_type name or id with the event_listener.

 

Also ,can you please help me to get the ProjectWorkflowSchemeHelper instance on event listener?

Thanks

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events