Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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
PD 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
atlassian, mindful member, mindful member badge, atlassian community, community kudos, community giveaway, atlassian swag, community values, empathy and kindness, badge challenge, atlassian learning, community engagement, swag giveaway

Earn a Badge, Win a Prize 🎁

Earning the Mindful Member badge proves you know how to lead with kindness, plus it enters you into a giveaway for exclusive Atlassian swag. Take the quiz, grab the badge, and comment on our announcement article to spread the good vibes!

Start here
AUG Leaders

Atlassian Community Events