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

Tarun Sapra
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 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

0 votes
Answer accepted
JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 22, 2014

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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 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