Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JIRA] JIRA Issue Details Blank Page #26

Closed
ebresie opened this issue Dec 11, 2024 · 10 comments
Closed

[JIRA] JIRA Issue Details Blank Page #26

ebresie opened this issue Dec 11, 2024 · 10 comments
Labels
AXON-74 JIRA This is related to JIRA server This is related to server products triaged Someone from @atlassian/axon looked into this

Comments

@ebresie
Copy link

ebresie commented Dec 11, 2024

When reviewing "My issues, it shows the list of JIRA tickets but when clicking on the item, a blank Jira Issue page is opened up.

I believe this is related to BitBucket ticket](https://bitbucket.org/atlassianlabs/atlascode/issues/351/jira-issue-details-blank-page)

Not sure if this is the issue but I suspect the API used currently may have been deprecated/replaced and may be as simple as changing to the correct API reference where applicable.

@ebresie
Copy link
Author

ebresie commented Dec 11, 2024

With the new tracking on Github, I wasn't sure what the process to get existing tickets was so figured I would start a new ticket here and have things acted on here. If work for this is to continue on the Atlassian BitBucket site, then this can be closed as duplicate but would still want updates to be made to fix the problem.

@sdzh-atlassian
Copy link
Member

Hi @ebresie!

Thanks for carrying the issues over here! You're right in assuming that we'd be tracking things here in Github now 😄

We're still getting our bearings in the codebase - but this feels like an issue caused by the client we're using to fetch the data going out of date. We'll see what we can do! I'll keep you posted when any changes are made

@sdzh-atlassian sdzh-atlassian added JIRA This is related to JIRA server This is related to server products triaged Someone from @atlassian/axon looked into this labels Dec 11, 2024
@georgespano
Copy link

More info about this issue and the respective work around can be found here: https://bitbucket.org/atlassianlabs/atlascode/issues/753/cannot-open-issue-create-issue-in-vscode

@dgrierso
Copy link

I suspect that this is related to this issue which I raised on BitBucket which hasn't been transferred across to GitHub:

https://bitbucket.org/atlassianlabs/atlascode/issues/5435/bug-in-getcreateissuemetadata-for-data

Original defect details added below:

The @atlassianlabs/jira-pi-client library which is used has a defect in it which is preventing this plugin from functioning with Jira Data Center instances.

The REST API for getting issuetypes associated with a project on a Jira DC instance is: issue/createmeta/{projectIdOrKey}/issuetypes but the client code within the @atlassianlabs/jira-pi-client library appears to be attempting to construct a URL of the form: issue/createmeta/{projectKey}?expand=projects.issuetypes.fields

The latter API call is valid only for Jira Cloud instances.

See the following API calls on my DataCenter instance:

10.105.64.251 - - [08/Nov/2024:09:52:43 +0000] "GET /rest/api/2/issue/createmeta?projectKeys=CBST&expand=projects.issuetypes.fields HTTP/1.1" 404 54 "-" "atlascode/2.x axios/0.19.2"
10.105.64.253 - - [08/Nov/2024:12:17:13 +0000] "GET /rest/api/2/issue/createmeta?projectKeys=CBST&expand=projects.issuetypes.fields HTTP/1.1" 404 54 "-" "atlascode/2.x axios/0.19.2"

As you can see these are receiving a 404 response - which causes the issue loading screen in VSCode to break completely and appears as a blank window.

I would report this as an upstream issue but the jira-pi-client repository no longer appears to exist at its published location:

If the underlying jira-pi-client repo is not maintained then the Atlascode plugin should either:

  1. Take over maintenance of it so that their plugin is maintained properly;
  2. Port Atlascode plugin to use a different library which is maintained.

End users can fix this by modifying their $VSCODE_HOME/extensions/atlassian.atlascode-$VERSION/build/extensions/extension.js file to modify all occurrences of :

From : this.getFromJira("issue/createmeta",{projectKeys:[t],expand:"projects.issuetypes.fields"})

To : this.getFromJira("issue/createmeta/".concat(t,"/issuetypes"))

However this must be done for every version of Atlascode which is released.

As you can see after modifying the file the issuetype retrieval call is successful:

10.105.64.251 - - [08/Nov/2024:09:52:43 +0000] "GET /rest/api/2/issue/createmeta?projectKeys=CBST&expand=projects.issuetypes.fields HTTP/1.1" 404 54 "-" "atlascode/2.x axios/0.19.2"
10.105.64.253 - - [08/Nov/2024:12:17:13 +0000] "GET /rest/api/2/issue/createmeta?projectKeys=CBST&expand=projects.issuetypes.fields HTTP/1.1" 404 54 "-" "atlascode/2.x axios/0.19.2"
10.105.64.254 - - [08/Nov/2024:14:49:12 +0000] "GET /rest/api/2/issue/createmeta/CBST/issuetypes HTTP/1.1" 200 3471 "-" "atlascode/2.x axios/0.19.2"
10.105.64.252 - - [08/Nov/2024:14:50:41 +0000] "GET /rest/api/2/issue/createmeta/CBST/issuetypes HTTP/1.1" 200 3471 "-" "atlascode/2.x axios/0.19.2"
10.105.64.253 - - [08/Nov/2024:14:50:44 +0000] "GET /rest/api/2/issue/createmeta/CBST/issuetypes HTTP/1.1" 200 3471 "-" "atlascode/2.x axios/0.19.2"

@sdzh-atlassian
Copy link
Member

Thanks for digging into this further folks!

You are right in that we have observed several issues related to that client package already - and you are also right that we aren't the team maintaining it right now 😄

Still, there might be some things we can do to address these issues in the existing client - which is what we're looking into to hopefully address these.

@dgrierso
Copy link

Problem still exists in version 3.2.3, although now you receive the notification:

Image

Corresponding HTTP logs are:

10.105.64.254 - - [27/Jan/2025:11:55:30 +0000] "GET /rest/api/2/field HTTP/1.1" 200 179310 "-" "atlascode/2.x axios/0.19.2"
10.105.64.252 - - [27/Jan/2025:11:55:30 +0000] "GET /rest/api/2/issueLinkType HTTP/1.1" 200 1845 "-" "atlascode/2.x axios/0.19.2"
10.105.64.254 - - [27/Jan/2025:11:55:30 +0000] "GET /rest/api/2/issue/CBST-11121?expand=transitions%2CrenderedFields%2Ceditmeta%2Ctransitions.fields&fields=*all HTTP/1.1" 200 171335 "-" "atlascode/2.x axios/0.19.2"
10.105.64.250 - - [27/Jan/2025:11:55:31 +0000] "GET /rest/api/2/issue/createmeta?projectKeys=CBST&expand=projects.issuetypes.fields HTTP/1.1" 404 54 "-" "atlascode/2.x axios/0.19.2"

@dgrierso
Copy link

dgrierso commented Feb 3, 2025

This looks like it may be fixed in version 3.4.0

@ncarkaxhija-bsd ncarkaxhija-bsd marked this as a duplicate of #80 Feb 3, 2025
@lutin-malin
Copy link

Confirmed as fixed in 3.4.0

@bwieger-atlassian-com
Copy link
Collaborator

Closing this one out.

Let me know if you are still experiencing the issue on versions >= 3.4.0

@ebresie
Copy link
Author

ebresie commented Feb 4, 2025

Confirm it works for me as of 3.4.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AXON-74 JIRA This is related to JIRA server This is related to server products triaged Someone from @atlassian/axon looked into this
Projects
None yet
Development

No branches or pull requests

6 participants