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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Loading Javascript in the old issue view (background script) Edited

Until the New issue view goes live for all users on March 31, 2021 we have 2 ways to invoke these scripts. In atlassian-connect.json we can insert issueview.html twice. Once in webSections (old way) and once in jiraBackgroundScripts (new way). The trouble is that on the old view only webSections works. On the new view the webSection renders an unwanted empty UI component that confuses users. Therefore we have to enable these scripts depending if the user has new view enabled, otherwise in the new view the scripts execute twice. Unfortunately there's not much info in the API docs about this endpoint: /rest/greenhopper/1.0/profile/labs-panel/issue-details-popup meaning I can’t figure out if the user uses the new or the old view. Because the scripts are part of iframes they cannot reach the global scope. Which means I can’t disable the double execution of them. And even so, I can’t prevent the unwanted GUI element from showing up since I can’t redefine the attlassian-connect.json on the fly. So, I'm left empty handed. The only way we can deal with this is to wait for the complete roll out of the new view and deal with unwanted view by dumping a message or simply ignoring it.

0 answers

Suggest an answer

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

Announcing the waitlist for Jira Work Management

Hey there Cloud Community members! We’re excited to give you the first glimpse of the new home for business teams on Jira — Jira Work Management. Jira Work Management is the next generation of J...

640 views 10 16
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