Custom web item with Run code does not work?

ChrisR
Contributor
May 7, 2020

When using the "Run Code..." option I would expect to see a way to enter the code to be run and a reference to a flag or dialog. Neither are given, the link field remains. Is this an error in the ScriptRunner add-on? Is there a workaround?

1 answer

0 votes
Peter-Dave Sheehan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 24, 2020

I can see how that label could be misleading.

This is not an error.

Perhaps better labels would be 

  • Navigate to Link
  • Call REST api and display a Dialog 
  • Call REST api and show a flag 
  • Do nothing.

In either case, you have to write a custom REST enpoint that will return either a Dialog HTML or a flag json object.

You can find an example to get started here: https://scriptrunner.adaptavist.com/5.7.1.1-p5/jira/fragments/WebItem.html#_dialogs_advanced

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events