Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with Jira Plugin After Upgrading from Version 8 to 8.5

Sergej Kalva July 31, 2024

 

 

Hello Atlassian Community,

I’m experiencing an issue with my Jira plugin after upgrading from version 8 to 8.5. When I move an issue without sub-tasks, everything works fine. However, when I try to move an issue that has sub-tasks, my plugin fails to load the script.

Here are some details:

  • The plugin works perfectly for issues without sub-tasks.
  • The problem occurs only when moving issues with sub-tasks.
  • The script associated with the plugin does not load during the move operation.

How look my document with sub-task:

<html>

<head></head>

<body></body>

</html>

and without:

It`s full

 

Could this be related to the version upgrade? Any insights or solutions would be greatly appreciated.

Thank you!

1 answer

0 votes
John Price
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 31, 2024

Hi Sergej -

Yes, this could easily be the problem. When upgrading Jira Data Center, you need to first verify that all plugins are compatible with the new Jira version. Is this a commercial plugin on Marketplace or is it something you wrote yourself? General steps for commercial ones:


  • Check the version of the plugin in your instance.
  • Go to Marketplace and read the documentation and/or version history to check compatibility.
  • Upgrade the plugin if necessary.
  • Contact the plugin vendor for support if needed.
Sergej Kalva July 31, 2024

Hi, John! Thanx for answer. It`s my plugin. This problem does not exist on Jira version 9.0. But I need to use version 8.5. :) 

Can you provide links where I can see the cause of the problem? Or where I can see the differences between the versions?

Sergej Kalva August 1, 2024

I found where the problem is.

I get in the parameters into my filter

FilterChain chain

 This is a java class. And I get parametr 

ServletResponse servletResponse

From servletResponse I get response

HttpServletResponse response = ((HttpServletResponse) servletResponse);

 And from response I get capturingResponseWrapper

HtmlResponseWrapper capturingResponseWrapper = new HtmlResponseWrapper(response);

 I get request from servletRequest, wich I get from parametrs

HttpServletRequest request = ((HttpServletRequest) servletRequest);

 after that I do 

chain.doFilter(request, capturingResponseWrapper);

And, whet isuue is without sub-task,  capturingResponseWrapper have a full body,

with, empty. May be it`s important, in request.getQueryString() with sub-task is 5396403, without 5396400

Any reasons please.

Like John Price likes this
John Price
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 1, 2024

Hey - 

It's been a while since I wrote custom plugin so this is not something I can help with really, but it sounds like you are making progress. You will have better luck getting help if you can post:

  • exact Jira version (8.5.??)
  • exact API and version you are using
  • calls you are making and sample parameters
  • full value of correct/bad responses

Since you say it worked in 8 and works again in 9 but not 8.5, you can also check the bug database.

Sergej Kalva August 2, 2024
log.error("Before chain.doFilter, Request URI: " + request.getRequestURI());

chain.doFilter(request, capturingResponseWrapper);

log.error("After chain.doFilter");

if (response.isCommitted()) {
log.error("Response is already committed.");
} else {
String capturedHtml = capturingResponseWrapper.getCaptureAsString();
log.error("Captured HTML: " + capturedHtml);
}

in case with sub-task, I get  Response is already committed.

My jira V (v8.5.16#805016-sha1:638b76f) 
API 9.6.0

John Price
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 2, 2024

I thought that might help me, but I'm still stumped. Hopefully someone with deeper knowledge of plugin development will come along!

Suggest an answer

Log in or Sign up to answer