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

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


1 badge earned


Participate in fun challenges

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


Gift kudos to your peers

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


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!


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

Open browser pop-up window and navigate to specified URL


Hi Team,

I would like to pop-up window and navigate to specified url when the ticket status after transition to "Done" status. I used custom script post function using script runner, but its not working as expected. Is there any wrong in my script ?  


import com.atlassian.jira.component.ComponentAccessor


import java.awt.Desktop

def issue = issue

// Specify the URL you want to open in the popup window

def url = "" // Sample url

def currentUser = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser()

log.warn("By user: " + currentUser.getUsername())

log.warn("Moved issue to DONE: " + issue.getId() + " - " + issue.getSummary())

// check if desktop methods supported

if(Desktop.isDesktopSupported()) {

    log.warn("Desktop class is SUPPORTED on the current platform")

} else {

    log.warn("Desktop class IS NOT SUPPORTED on the current platform")



// Open the URL in a new browser window

try {

    log.warn("Open browser window with specified URL " + url)

    Desktop.getDesktop().browse(new URI(url))

} catch(Exception e) {

    log.warn("Error occurred: " + e.getMessage())

    log.warn("Stack trace: " + e.printStackTrace())


return null

1 answer

0 votes
Ram Kumar Aravindakshan _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.
May 04, 2023

Hi @Lakshmi S

For your requirement, I would suggest looking into ScriptRunner's Fragments.

If you intend to create a new dialog, it would be best to look into the Fragment's Web Item.

The sample Web Item link above provides a working code along with instructions on how to enable the dialog is provided.

You must use both the REST Endpoint and the Fragment Web item.

I hope this helps to answer your question. :-)

Thank you and Kind regards,


Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events