Skip to content

Add new API in Version2Client #357

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Mar 1, 2025
Prev Previous commit
Incremental improvements
  • Loading branch information
MrRefactoring committed Feb 28, 2025
commit 5a6ab813f345de4849156eaf708bf49f8fff0f46
4 changes: 2 additions & 2 deletions src/version2/jqlFunctionsApps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,10 @@ export class JqlFunctionsApps {
url: '/rest/api/2/jql/function/computation/search',
method: 'POST',
params: {
orderBy: parameters?.orderBy,
orderBy: parameters.orderBy,
},
data: {
precomputationIDs: parameters?.precomputationIDs,
precomputationIDs: parameters.precomputationIDs,
},
};

Expand Down
5 changes: 4 additions & 1 deletion src/version2/projectRoles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ export class ProjectRoles {
* _Administer Projects_ [project permission](https://confluence.atlassian.com/x/yodKLg) for any project on the site
* or _Administer Jira_ [global permission](https://confluence.atlassian.com/x/x4dKLg).
*/
async getProjectRoles<T = Record<string, string>>(parameters: Parameters.GetProjectRoles | string, callback?: never): Promise<T>;
async getProjectRoles<T = Record<string, string>>(
parameters: Parameters.GetProjectRoles | string,
callback?: never,
): Promise<T>;
async getProjectRoles<T = Record<string, string>>(
parameters: Parameters.GetProjectRoles | string,
callback?: Callback<T>,
Expand Down
4 changes: 2 additions & 2 deletions src/version3/jqlFunctionsApps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,10 @@ export class JqlFunctionsApps {
url: '/rest/api/3/jql/function/computation/search',
method: 'POST',
params: {
orderBy: parameters?.orderBy,
orderBy: parameters.orderBy,
},
data: {
precomputationIDs: parameters?.precomputationIDs,
precomputationIDs: parameters.precomputationIDs,
},
};

Expand Down
Loading