Forums

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

JMWE Workflow Create Post-Function Question

Dan Moran May 11, 2018

Hello!

I'm using the JMWE "Create / Clone Issue" workflow post-function to create a story on the create transition for an Epic -- in other words, in this workflow when an Epic is being created I want a story to be created as well -- and the important part is that the story's epic link should be set to the issue key of the Epic that is creating it.

It's this last part that I can't figure out -- what's the right syntax for the Epic Link field? See screenshot below -- that syntax doesn't work.

Thanks in advance for your help.

Screen Shot 2018-05-11 at 1.22.37 PM.png

1 answer

1 accepted

1 vote
Answer accepted
David Fischer
Community Champion
May 11, 2018

That is actually the right syntax when using a Groovy Template as the value. 

Did you make sure to move the post-function to the bottom of the list (after the Created the issue originally post-function)?

Dan Moran May 11, 2018

Thanks for the very fast response, @David Fischer. Yes, my post-functions are after the "Creates the issue originally" post-function. Here's the whole list of post-functions:

Screen Shot 2018-05-11 at 2.32.44 PM.png

Dan Moran May 11, 2018

I figured it out! For various reasons I am having the user create their Epic using another issue type and in post-function 4 in the screenshot above I'm changing the issue type to Epic. Since that was happening after post-functions 2 and 3 in which I was creating the Epics stories, it wasn't able to set the Epic Links of those stories since the originating ticket wasn't an epic yet.

So changing the order of the post-functions such that post-function 4 happens before 2 and 3 solved the issue.

Thanks again, @David Fischer, for your help.

Suggest an answer

Log in or Sign up to answer