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

0 vote

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

684 views 1 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