approveIssue (Power Scripts)

approveIssue (Power Scripts)

 

Syntax

approveIssue(issue, [approverUsername])

Package

 

Alias

 

Pkg Usage

 

Description

This routine automatically approves all pending approvals for the specified issue on behalf of the specified user or current user if not specified.

Parameters

Parameter name

Type

Required

Description

Parameter name

Type

Required

Description

issue

String

Yes

Key of the selected issue

approverUsername

String

No

The username of the user on whose behalf the issue is being approved. If not specified, the current user is used.

Return Type

Boolean

Returns true if the operation was successful, false otherwise.

Examples

Example 1

Approve using current user

return approveIssue("SM-123");

Example 2

Approve on behalf of a specific user

return approveIssue("SM-123", "john.doe");

 

 

See also

Need support? Create a request with our support team.

Copyright © 2005 - 2026 Appfire | All rights reserved.