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.


1 answer

1 accepted

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
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,711 views 17 21
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