Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

trigger-dialog - TypeError: Cannot redefine property: contextPath

I'm trying to make a webwork in dialog that logs some stuff. I created the vm with cancel button: 

<a class="aui-button aui-button-link cancel" href="/browse/${issueKey}" id="log-service-cancel" resolved="">Cancel</a>

 and it works just fine, but after hitting submit, which calls doExecute method in my ApplicationSupport:

@Override
@RequiresXsrfCheck
protected String doExecute() throws Exception {
return getRedirect(getReturnUrl(), true);
}
@Override
public String getReturnUrl() {
return "/browse/" + issueKey;
}

The pop-up disappears but grey overlay remains. There's also an error in browser's console:

Uncaught TypeError: Cannot redefine property: contextPath
at Function.defineProperty (<anonymous>)
at eval (eval at globalEval (jquery.js:348), <anonymous>:36:16)
at eval (eval at globalEval (jquery.js:348), <anonymous>:48:7)
at eval (<anonymous>)
at Function.globalEval (jquery.js:348)
at domManip (jquery.js:5296)
at jQuery.fn.init.append (jquery.js:5436)
at jQuery.fn.init.<anonymous> (jquery.js:5530)
at access (jquery.js:3619)
at jQuery.fn.init.html (jquery.js:5497) 

I didn't go anywhere near contextPath variable, my support class extends JiraWebActionSupport, so nothing unexpected either.

 

I'm using jira 8.2.5 (also checked on 8.5.3) and amps 6.3.15

1 answer

Hello, is there any solution to this problem?

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

☕️ Monday coffee with Jexo: Weekly Atlassian news roundup | 21st June 2021

Hi community 👋, as every Monday we're bringing you a quick update on what happened in the Atlassian ecosystem last week. There were a few interesting events like for example the announcement of th...

51 views 0 6
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