AtlassianPS / JiraPS

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

Fields Method Add-On #292

Open tuxgoose opened 6 years ago

tuxgoose commented 6 years ago

Ability to limit data fields from a jiraIssue

Expected Behavior

Get-JiraIssue -Fields "assignee,labels,description" -Key example-45

Current Behavior

Get-JiraIssue -Key example-45 -currently you return every field within the jira issue

Get-JiraIssue -Fields "assignee,labels,description" -Key example-45 -would only return the fields given ID : 57538 labels : testing Assignee : Unassigned RestUrl : https://website.com/rest/api/latest/issue/example-45 Key : example-45 HttpUrl : https://website.com/browse/example-45 Description :example description of story Status : Summary : Transition : {}

Possible Solution

check for the fields parameter and modify the resource uri if present

Context

We have some hundred of additional customfields in jira that makes requesting issues very slow

Your Environment

Get-Module JiraPS -ListAvailable | select version
$PSVersionTable

JiraPS version 2.7.0 PSVersion 5.1.16299.431

tuxgoose commented 6 years ago

@lipkau could you assign this to me?

tuxgoose commented 6 years ago

@lipkau when the code get merged with master do we delete this issue?

lipkau commented 6 years ago

correct :-)

tuxgoose commented 5 years ago

Was there an issue with the code?

lipkau commented 5 years ago

no. I am waiting for microsoft to fix a problem we have with azure devops. Then I can migrate the CI and release this feature

lipkau commented 5 years ago

related to #62