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

0 votes

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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,760 views 11 18
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot