Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Automation for Jira (DC) v7.2.1 - Help needed for using ScriptRunner 3rd Party Extension


This Documentation for using ScriptRunner 3rd Party extension for Automation for Jira clearly states the following:
Additionally there are two utility functions available for writing information and error messages to the Automation for Jira audit log. They are addMessage(String message) and addError(String errorMessage)

However, when adding either to the script, I get an error 'Cannot find matching method'.
Do I need to import any packages to get this to work? If so, what package(s) do I need to import?

2 answers

1 accepted

0 votes
Answer accepted

What version of Scriptrunner are you using?

I see that in version 6.4.0 you have a different method to add error message:

errorCollection.addErrorMessage("Something went wrong") 

Italo,  as noted on my reply to Jamie, your response got me back on track.


Awesome! Glad to hear it :)

There are two *actions* available for for A4J as of the most recent ScriptRunner version -

Please can you confirm you are using the *new* action... the old one has "deprecated" in the name.

The addMessage and addError are only available in the new action.

A screenshot might be helpful.

Jamie, both your and Italo's response let me down the correct path.

I installed the most recent Script Runner (6.16.0) and Automation for Jira (7.2.4) addons and then the actions worked.


Thanks for responding.

Thanks for letting us know ;-)

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Apps & Integrations

Apps for Confluence you won't want to miss: RSVP for September's Appy Hours

Calling all collaborators and Confluence users! Our Appy Hours event on September 29th features 4 presenters demoing functionality to superpower Confluence. Don't miss learning about these apps i...

120 views 0 9
Read article

Atlassian Community Events