How to fix Jira on-prem in VSCode on macOS shows blank pane

jbullocksp September 16, 2024

Hey, Atlassian fam.  First post for me...

I can see the list of my Jira issues, but when I select an issue, the pane ("tab") where I expect to see details about the issue is blank.  

I've read where an on-prem VSCode user on Windows has found a solution in an extension.js file, but I don't find an equivalent on my macOS computer.

Thank you for your time!  Have a Jiriffic day!

1 answer

0 votes
Venkat
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 19, 2024

Can you share the link for windows fix. If you have found it.

jbullocksp September 20, 2024

Hello, Venkat.

While searching for a solution to my issue on Apple OSX, I came across this "accepted answer" relevant to Microsoft Windows:

https://community.atlassian.com/t5/Bitbucket-questions/VSCode-plugin-does-shows-available-jira-issues-but-page-is-blank/qaq-p/2314200

Since I am not using Windows, I cannot offer an opinion on the solution offered at the link.

I hope this information is helpful to you.

Mark Barry December 8, 2024

Hi @Iyer_ Venkat and @jbullocksp .  Not sure if it is just me, but the link to the answer, and the original question, appears to have been deleted.  I was the author of the original answer, and as I rarely delete gmail messages, the original response is below, albeit for an earlier version, but I also tested with 3.0.14 of the extension as well.  There had been other community members apply the same fix to newer versions of the extension.

Original answer below:

If you want this to work with an on-premise Jira 9.x, you can make a simple change to :

~/.vscode/extensions/atlassian.atlascode-3.0.9/build/extension/extension.js

Replacing:

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

with:

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

And restarting VS Code solved the problem for me.  Keep in mind, if you use Dev Containers, there may be a local install of the extension within the Dev container as well as on your local machine.  E.g., windows user:

 c:\users\<you>\.vscode\extensions\atlassian-atlascode-3.0.9\build\extension\extension.js

Update

It is also possible to use sed to update the problematic line:

sed -i 's|"issue/createmeta",{projectKeys:\[t\],expand:"projects.issuetypes.fields"}|"issue/createmeta/".concat(t,"/issuetypes")|' extension.js

I have applied this to the following:
Jira Ver: 9.12.15 (On prem)
VS Code Ver: 1.94.1
OS: Windows 10
Jira & Bitbucket Extension: 3.0.14

I'd also recommend disabling the auto-update on the extension, otherwise it will keep breaking.

Like jbullocksp likes this
jbullocksp December 9, 2024

Thank you, @Mark Barry

I sincerely appreciate you making time to reply.  

I have been able to apply the recommended fix on several Macs I've used in recent months.

Like Mark Barry likes this

Suggest an answer

Log in or Sign up to answer