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

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 to add your script in scriptrunner as a post function in Jira.

The ScriptRunner is not allowing to import packages and there is only option using RestAPI. I want to fetch the values of the radio buttons  for a specific project and perform operations after the selection is done.

 

1 answer

Hi Abdul,

Thank you for your question.

I can confirm that ScriptRunner for Jira Cloud is different to ScriptRunner Jira Server as Jira Cloud does not provide the Java API which the server version has as Atlassian restrict what functions can be performed on the cloud through the Rest API.

This is the reason that your Import statement gives an error as this import statement is only valid for the Java API on Jira Server.

More information on the differences between the cloud and server versions can be found in the documentation page located here.

I can also confirm that you only use imports provided by the standard Java 8 classes as described in the documentation page here and that as mentioned previously you can only interact with Jira Cloud through the Rest API as Atlassian do not provide the same Java API in Jira Cloud that they do in Jira Server.

Finally, I can confirm that we have examples of how to interact with different custom field types, inside of the documentation page located here and you will be able to use these examples as a reference guide, to help you create the script that you require.

If this answer has solved your issue can you please accept it in order to mark this answer as correct for users who are searching for a similar issue.

Regards,

Kristian

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Software

How to create Jira issus from Excel file?

When to use CSV importer When managing your processes in Jira, there are many occasions where you need to create a lot of tasks. Creating them one by one will cost you a lot of time and effort and i...

4,346 views 22 31
Read article

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