Adding Post function using script runner (without the file in classpath)

Tarun Sapra Community Champion Jul 21, 2014

Hi All,

I have been using script runner for quite some time now, but I am facing a small issue, I need to write a small script (5-6 lines only) and use it as post function but I don't want to create a separate groovy file and put in the class path, but i can't find a way just to add few lines of code. I need to update the assignee based on combination of reporter and issueType. There are sciprt post functions like send custom email etc which allow for conditions but I can't find a suitable builtin post-function for my requirement and can't find a way to write custom code.

Thanks,

1 answer

1 accepted

This widget could not be displayed.

Upgrade to 3.0, you can have fully-custom scripts inline as well as in files.

PS, you would not put it in the classpath, just somewhere on the filesystem and point to it.

Tarun Sapra Community Champion Jul 22, 2014

Thanks Jamie, my bad, by classpath I meant only putting it in the filesystem.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted yesterday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

34 views 0 1
Join discussion

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