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

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
4,557,537
Community Members
 
Community Events
184
Community Groups

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
AUG Leaders

Atlassian Community Events