AtlassianPS / JiraPS

PowerShell module to interact with Atlassian JIRA
https://AtlassianPS.org/module/JiraPS
MIT License
323 stars 131 forks source link

Project versions #159

Closed mwoffenden closed 6 years ago

mwoffenden commented 7 years ago

How do I get a Jira project's versions using JiraPS?

lipkau commented 7 years ago

Get-JiraVersion -Project $ProjectKey. But this is currently only available in de dev branch. Don't know if I will manage to release this to the gallery tomorrow. But within the next month definitely.

mwoffenden commented 7 years ago

In Jira it's possible to create multiple versions for a project. Would this give me a list of all versions for a project?

lipkau commented 7 years ago

Yes

mwoffenden commented 7 years ago

Great. How do I access the dev branch? I need to get at the project versions this week.

lipkau commented 7 years ago

https://github.com/AtlassianPS/JiraPS/archive/dev.zip

mwoffenden commented 7 years ago

Great, how do I install? Sorry, not familiar with the inner workings of modules.

lipkau commented 7 years ago

You can Import-Module '......\JiraPS\JiraPS.psd1'

mwoffenden commented 7 years ago

Ok, I imported the module and the Get-JiraVersion command is available.

Bit it's not finding my project, which I know exists (and I can retrieve the project name using Get-JiraProject.) Getting this error. Any ideas?

Resolve-JiraError : Jira encountered an error: [No project could be found with key 'Project1'.]

lipkau commented 7 years ago

Can you show a screenshot of the Versions?

mwoffenden commented 7 years ago
screenshot_753
mwoffenden commented 7 years ago

Some progress. I can retrieve individual versions with this command:

Get-JiraVersion -ID 10001 -Credential $cred

But I am still struggling to access all versions by Project name.

lipkau commented 7 years ago

Unfortunately you redacted the project key

mwoffenden commented 7 years ago

Yes, we can't post it. How would it help you anyway?

lipkau commented 7 years ago

I am sorry to say, but I am not able to track down the problem please make sure your prokect key is in the correct case (I think the current implementation is case sensitive). image

However: I am planing on releasing the a new version by end of this week with the feature working properly. You can track this here: Milestone v2.2

mwoffenden commented 7 years ago

I do have the key in the correct case. Hope the new release fixes my issue.