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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

How to refresh/reload a page using script runner

Hi I would like to refresh/reload the page when I run a piece of code How can I do it

 

2 answers

Depending on where your code is being executed you can do a call to 

 Response.temporaryRedirect(URI.create("${baseUrl}/browse/${issue.key}")).build()

 We use it within custom REST endpoints with Scriptrunner for Jira.

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Aug 04, 2021

I don't believe you can do this.  You'd need to inject your own javascript to do it, and SR doesn't have a way to do that.

Could you explain what you're actually trying to achieve and why a page refresh is desired?

When I try to display the message using  UserMessageUtil.success('Good job! ') It doesn't display until the page is refreshed Any solution for this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events