Skip to content
This repository has been archived by the owner on Jul 23, 2020. It is now read-only.

I am not able to see method to fetch dev status summary in jira-connector #192

Open
Shivraj-Star opened this issue Sep 19, 2019 · 2 comments

Comments

@Shivraj-Star
Copy link

Shivraj-Star commented Sep 19, 2019

We have WEB URL for the same - https://enterprise-jira.xxxx.com/rest/dev-status/1.0/issue/summary?issueId=xxxx
but I need a library method for above the same requirement.

dev status summary means - (in progress or OPEN)
Please let me know what is method in the library.

@Shivraj-Star
Copy link
Author

Can somebody add this method into library so that I can use into my code like jira.issue.getDevStatusSummary({issueId: item.id})

//code
this.getDevStatusSummary = function (opts, callback) {
if (!opts.agile) {
var options = this.buildRequestOptions(opts, '', 'GET');
} else {
var endpoint = '/rest/dev-status/1.0/issue/summary?issueId=' + (opts.issueId || opts.issueKey);
var options = {
uri: this.jiraClient.buildAgileURL(endpoint),
method: 'GET',
json: true,
followAllRedirects: true,
qs: {
filter: opts.filter,
startAt: opts.startAt,
maxResults: opts.maxResults,
expand: opts.expand
}
};
}

    return this.jiraClient.makeRequest(options, callback);
};

@kylefarris
Copy link
Collaborator

@Shivraj-Star Please make a pull request with the requested change. That is the proper procedure.

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

No branches or pull requests

2 participants