Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How do I get the issue that called a script using ScriptRunner?

I have a script set up to pull attachments and send them off to get graded for content. Currently, it is set to key off one test issue. I would like to know how to get the script to know which issue called it and pull the correct attachments.

Thank you.

1 answer

1 accepted

1 vote
Answer accepted
Ismael Jimoh Community Leader Dec 23, 2020

Hi @Richard Pirtle 

Where is your script placed? Workflow post function or Script listener?

In the former, using issue should return you the exact issue whereas with the later, you can check it with event.issue which shows you the issue which triggered the event.

Knowing where you placed the said script makes it easier to suggest.


Hi Ismeal,

Thank you for the quick response. I have it currently set up as a workflow post function.

Everything works great! Thanks for the quick response.

Suggest an answer

Log in or Sign up to answer

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you