You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the Api::getIssue method supports expand parameter, but doesn't allow specifying other parameters of the underlying Jira REST API call (fields, fieldsByKeys, properties, updateHistory, failFast)
the Api::search method supports jql, maxResults, fields and nextPageToken parameters, but doesn't allow specifying other parameters of the underlying Jira REST API call (expand, properties, fieldsByKeys, failFast, reconcileIssues)
the Walker class suffers from the same customization problems as the Api::search, that is used internally
Solution
add the array $params = array() parameter to the Api::getIssue, Api::search and Api::search methods and combine $params array built in the method itself with a provided one
for the Walker class:
add the protected $params property of the array type
add the array $params = array() parameter to the Walker::push method and store it in the $params class property
specify $this->params to the executed Api::search method in the Walker::getIterator method
adjust tests to confirm that extra parameters (just test couple of the parameters) are forwarded into the underlying Jira API calls
Problem
Api::getIssuemethod supportsexpandparameter, but doesn't allow specifying other parameters of the underlying Jira REST API call (fields,fieldsByKeys,properties,updateHistory,failFast)Api::searchmethod supportsjql,maxResults,fieldsandnextPageTokenparameters, but doesn't allow specifying other parameters of the underlying Jira REST API call (expand,properties,fieldsByKeys,failFast,reconcileIssues)Walkerclass suffers from the same customization problems as theApi::search, that is used internallySolution
array $params = array()parameter to theApi::getIssue,Api::searchandApi::searchmethods and combine$paramsarray built in the method itself with a provided oneWalkerclass:$paramsproperty of the array typearray $params = array()parameter to theWalker::pushmethod and store it in the$paramsclass property$this->paramsto the executedApi::searchmethod in theWalker::getIteratormethodCloses #191