Skip to content

Commit fceb2b6

Browse files
committed
Merge pull request #116 from watters/master
add 'expand' parameter to searchJira method and update documentation link
2 parents efc81d4 + e62800f commit fceb2b6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/jira.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ var JiraApi = exports.JiraApi = function(protocol, host, port, username, passwor
860860
// * error: string if there's an error
861861
// * issues: array of issues for the user
862862
//
863-
// [Jira Doc](http://docs.atlassian.com/jira/REST/latest/#id333082)
863+
// [Jira Doc](https://docs.atlassian.com/jira/REST/latest/#d2e4424)
864864
this.searchJira = function(searchString, optional, callback) {
865865
// backwards compatibility
866866
optional = optional || {};
@@ -878,7 +878,8 @@ var JiraApi = exports.JiraApi = function(protocol, host, port, username, passwor
878878
jql: searchString,
879879
startAt: optional.startAt || 0,
880880
maxResults: optional.maxResults || 50,
881-
fields: optional.fields || ["summary", "status", "assignee", "description"]
881+
fields: optional.fields || ["summary", "status", "assignee", "description"],
882+
expand: optional.expand || ['schema', 'names']
882883
}
883884
};
884885

0 commit comments

Comments
 (0)