Forums

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

Jira Automation logic

tbronson
March 21, 2023

I am trying to figure out how to autoassign a story when a user - in a custom user field is added.

 

Scenario

I have logic that creates a clone story and moves it to a different project once a User has been assigned in a custom field that is using the normal Jira user field.

 

Once on the other project I have no seen a way to link the assignee field to = the other User field.

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