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 9 breaks creating Jira issues #461

Open
gforke97 opened this issue Aug 10, 2022 · 21 comments
Open

Jira 9 breaks creating Jira issues #461

gforke97 opened this issue Aug 10, 2022 · 21 comments

Comments

@gforke97
Copy link

Description

Get-JiraIssueCreateMetadata fails in Jira Version 9.0 according to a short research its because the used API is deprecreated

Steps To Reproduce

Run Get-JiraIssueCreateMetadata against a Jira Server with Version 9.0 or higher

Expected behavior

Get the Meta Data needed to create an Issue

Your Environment

Jira 9.0

Get-Module JiraPS -ListAvailable | Select Name, Version

Name Version


JiraPS 2.14.6

$PSVersionTable

Name Value


PSVersion 7.2.5
PSEdition Core
GitCommitId 7.2.5
OS Microsoft Windows 10.0.22000
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0

Possible Solution

https://bitbucket.org/atlassianlabs/atlascode/issues/753/cannot-open-issue-create-issue-in-vscode

@gforke97
Copy link
Author

Jira Server not cloud btw

@rjl61
Copy link

rjl61 commented Aug 16, 2022

Same for 9.1. I also discovered that the API call used by Get-JiraIssueCreateMetadata was not only deprecated but missing entirely. I was already making some local changes to use the new API call when I saw your post. The workaround does work after also making changes to the ConvertTo-JiraCreateMetaField for the different structure.

@saeid-adz
Copy link

I have the same problem! @rjl61 would you please share what changes have you made to solve the problem?
It's pretty urgent for me!
Thanks!

@jcrivas1971
Copy link

Is there any chance that we will see a solution for this issue?
@rjl61: Could you please provide your solution?
Thanks.

@spicy
Copy link

spicy commented Oct 14, 2022

@jcrivas1971 @saeid-adz This is my solution. I have not significantly tested this but it seems to work for my purposes. spicy@fc2632c

@saeid-adz
Copy link

saeid-adz commented Oct 24, 2022

@spicy Thanks mate! Worked for me too! I have several types of connection and automation based on this module and I can confirm that the issues have been solved by using your solution!
Thanks again!

@jcrivas1971
Copy link

@saeid-adz: I am sorry but I guess you have to thank @spicy.
@spicy: I will try the solution next week. Thanks in advance for your work.

@saeid-adz
Copy link

@jcrivas1971 Thanks mate, I selected the wrong userId! edited now :)

@jcrivas1971
Copy link

@spicy: It took a while but I was able to test your fix today. It works perfectly!!
Thanks a lot.

@mwoffenden
Copy link

mwoffenden commented Jan 1, 2023

@spicy I need to integrate this fix today into my local WindowsPowerShell\Modules\JiraPS\2.14.6\JiraPS.psm1, what's the right way to do this? Or can we somehow get a fixed module?

@spicy
Copy link

spicy commented Jan 1, 2023

@spicy I need to integrate this fix today into my local WindowsPowerShell\Modules\JiraPS\2.14.6\JiraPS.psm1, what's the right way to do this? Or can we somehow get a fixed module?

I don't think this project is being supported since my merge request was not accepted yet. You can just copy my code and modify the function if it's visible. Otherwise you can put the new function in a new ps1 to call instead. Hope this helps

@mwoffenden
Copy link

You can just copy my code and modify the function if it's visible. Otherwise you can put the new function in a new ps1 to call instead.

@spicy Thanks - I did try that locally, made the edits to "function Get-JiraIssueCreateMetadata" but the error still shows up, so I must be doing something wrong. We (along with many others) very much need this fixed.

Any idea how to build an updated module using your fixed code?

@mwoffenden
Copy link

Can anyone help with this?

@jcrivas1971
Copy link

@mwoffenden: spicy forked the original project and provided a fixed version. Instead of a local edit you should probably try to use his version or just the corrected file? You could download the whole project as a zip file and either copy the whole directory or just the above mentioned file. Just go to spicy/JIRAPS. I hope this helps.

@mwoffenden
Copy link

mwoffenden commented Jan 8, 2023

@jcrivas1971 Yes, we finally did download the code and made the edits locally, this solution seems to be working for us. However I can imagine that the ideal is to have the master JiraPS brought up to date so that people downloading from the PowerShell gallery can have a working version.

@eXpl0it3r
Copy link

So what's the status with proper Jira 9 support, @lipkau?

@claudiospizzi
Copy link

Same issue here. What I can see, this is related to this change:
https://confluence.atlassian.com/jiracore/createmeta-rest-endpoint-to-be-removed-975040986.html

We've created a workaround for our use case, and we use this internally. Not sure if this covers all cases and if it is a complete workaround. Anyway, if someone finds that helpful:
arcadech@5d28053

@ChefkeGremmen
Copy link

@claudiospizzi ; thank you so much for this. I hope the maintainers find room to get the CICD pipeline up and running again so your pull-request can get processed. Your change fixed our situation.

@bradyclifford
Copy link

Seems the alpha pre-release 2.15.0-alpha1 of JiraPS fixes the issue. I am able to use the New-JiraIssue method without any issues. What can we do to get that pre-release promoted.

@mwoffenden
Copy link

mwoffenden commented Dec 16, 2024

Thanks @bradyclifford! Would you post a link to where I can find this pre-release? Also, does this also apply to Jira Cloud? We moved to Cloud about a year ago.

@bradyclifford
Copy link

bradyclifford commented Dec 17, 2024

I am not sure if it applies to Jira Cloud. I only tried the pre-release with the on-prem version of Jira. The release is listed in this repo's releases: https://github.com/AtlassianPS/JiraPS/releases/tag/v2.15.0-alpha1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

10 participants