Workflow: Project Changed?

Hi,

I'm sure the answer is right under my nose but I cannot find an example of how to catch the condition of when the project is changed for an issue.  And if there is a way to know the before and after value of that change.  I see examples for the old workflow API but not the JavaScript version.

Thanks in advance

-CL

1 comment
Comment actions Permalink
Official comment

Hi,

Please try the following: ctx.issue.isChanged("project") && ctx.issue.project.key === "SP", where SP is new project key. 

Unfortunately, there is no way to get the old project value. 

Please sign in to leave a comment.