scriptrunner fast track transition assistance

We have been trying to set up a script that changes the assignee when a custom field called issue type is set to a particular choice (eg bug). so far we have the below; 

2014-11-04 12_13_32-Update Workflow Transition Script Post-Function Function - JIRA UAT.png

however our script doesnt execute and we feel it may be an issue with the variable names. we've tried using full names for the assignee and we've tried using the custom field id number with no sucess. 

thank you for any help

1 answer

This widget could not be displayed.

Is it really a custom field called "Issue Type" and not the system field called "Issue Type"? That would be incredibly confusing if that's the case. 

Use the Condition Tester to check your condition anyway... then check the logs etc.

 

 

we were asked to set the system field "Issue Type" to only have one option and create another custom field within the form and call it "Issue Type" also but have several options for the custom "Issue Type" field

I durst not ask why but sounds like it will end badly. If "issue type" is a select list it should work, try the condition tester

issueInputParameters.setAssigneeId('jassaad') that particular line of code just isnt working and after googling, i could find nothing wrong with it

Hi Jamie: I have a similar issue as Jason. I've managed to get the condition working and the workflow successfully auto-transitions to the second state. However, the assignee does not change. For our additional code, we have: issueInputParameters.setAssigneeId('jassaad') Where jassaad is a user name. I've checked the logs as thoroughly as possible and there aren't any exceptions listed nor any scriptrunner-related entries within the ticket-creation timeframe (as the script is meant to execute on ticket creation). I'm certain it's the correct log as earlier exception errors were included before we had fixed the condition. We're running JIRA 6.3.3 and ScriptRunner 3.0.6. Any help would be greatly appreciated. Thanks!

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

533 views 3 19
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you