> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/continuous-delivery/use-continuous-delivery/cd-building-blocks/cd-steps/approvals/approvals-and-ticketing-faqs.md). Agents can also search and read this documentation through its [MCP server](https://developer.harness.io/~gitbook/mcp).

# Approvals and Ticketing FAQs

Answers to common questions about approval steps and Jira and ServiceNow ticketing

This topic answers common questions about Harness approval steps, Jira, and ServiceNow in Continuous Delivery pipelines. Go to [Approvals](https://developer.harness.io/continuous-delivery/use-continuous-delivery/cd-building-blocks/cd-steps/approvals.md) to browse the approval topics.

***

## Jira integration

<details>

<summary>How can Harness check that Jira sub-tickets are closed before the approval process runs?</summary>

Call the Jira issue endpoint. In the response, check whether the `subtask` field is populated for the main issue. Take the subtask issue keys from that response and loop over them to read each sub-ticket status. You can then tell whether the sub-tickets are closed before the Harness approval continues.

</details>

<details>

<summary>Can you use an existing Jira instance for deployment processes and approvals without creating a duplicate ticket?</summary>

Yes. Use the Approval and Update steps, and omit the Create step. Set the Jira issue key as a runtime input so you can enter the issue key when the process starts.

</details>

<details>

<summary>How do you trigger a pipeline that creates a Jira issue from a Python script on AWS Lambda and pass the Jira issue description?</summary>

Execute the pipeline with the [execute pipeline with input set list API](https://apidocs.harness.io/tag/Pipeline-Execute#operation/postPipelineExecuteWithInputSetList).

In that pipeline, add a Jira Update step and set the issue details there. Go to [Update Jira issues in CD stages](https://developer.harness.io/continuous-delivery/use-continuous-delivery/cd-building-blocks/cd-steps/ticketing-systems/update-jira-issues-in-cd-stages.md) to configure the Update step.

</details>

<details>

<summary>How do you provide the Jira project as an expression on the Jira approval step?</summary>

You cannot. On the Jira approval step, the Jira project field supports a fixed value or a runtime input. Expressions are not supported.

</details>

<details>

<summary>Can you transition a Jira issue to any status with the Update step?</summary>

No. Jira allows only the transitions defined in the project workflow. A status can move only to the statuses that workflow allows.

</details>

<details>

<summary>How do you add a comment with a Jira step?</summary>

Use `Comment` as the key. Use `\\` to add line breaks.

</details>

<details>

<summary>Does the Jira connector work with Jira Cloud without a delegate?</summary>

No. You need a delegate to set up the Jira connector. A platform-based Jira connector is not planned.

</details>

<details>

<summary>What Jira date fields does Harness support?</summary>

Harness supports the Baseline End Date and Start Date Time fields.

</details>

<details>

<summary>What is the issue link field in Jira used for?</summary>

The issue link field supports parent links. The Jira Create step can then create an issue with an existing issue as its parent.

</details>

<details>

<summary>Can you update Jira issues in Harness?</summary>

Yes. You can update Jira issues, and you can add Jira approval stages and steps.

</details>

***

## ServiceNow integration

<details>

<summary>Why might creating a ServiceNow ticket from a template fail?</summary>

Check both of the following:

* The Harness app is installed in the ServiceNow instance used by this connector.
* The integrated user has the `x_harne_harness_ap.integration_user_role` role.

Go to [Required ServiceNow integration app for Harness templates](https://developer.harness.io/continuous-delivery/use-continuous-delivery/cd-building-blocks/cd-steps/ticketing-systems/create-service-now-tickets-in-cd-stages.md#required-servicenow-integration-app-for-harness-templates) for the ServiceNow user role.

</details>

***

## Harness approval steps

<details>

<summary>How can you limit approval to specific people?</summary>

Create a user group and select that user group on the approval stage. Only members of that group can approve the execution. Go to [Select approvers](https://developer.harness.io/docs/platform/approvals/adding-harness-approval-stages/#select-approvers) to choose the group.

</details>

<details>

<summary>Why does the Harness Approval API return "No approval found for execution"?</summary>

The API returns approval details only when an approval step is pending. If no execution is waiting for approval, **No approval found for execution** is the expected message.

</details>

<details>

<summary>If two services use the same pipeline template, does approving one execution reject the other?</summary>

No. The pipelines run independently. You supply different services at runtime, including when the services are in the same project or in different projects.

</details>

<details>

<summary>How do you keep the manual approval step message format in the email body?</summary>

Emails are rendered as HTML. Add HTML tags to the approval step message. Those tags are rendered in the email body.

</details>

<details>

<summary>What events can trigger notifications in Harness pipelines?</summary>

Notifications can be triggered for pipeline start, pipeline success, pipeline failure, specific workflow steps, and manual approvals. You choose which of these events send a notification.

</details>

<details>

<summary>If Auto-Reject previous deployments paused in this step on approval is set, and two services use the same pipeline template, does approving one reject the other?</summary>

No. If `service1` and `service2` in the same project use the same pipeline template and both are waiting at the approval step, the executions run independently. The template is given different services at runtime.

</details>

<details>

<summary>How can you show more detail in an approval step for the approver?</summary>

Select **Include stage execution details in approval**. Approvers then see the execution history for this pipeline, which they can use when they approve or reject.

</details>

<details>

<summary>Can you use a custom approval step that runs a script, calls Jira, and fails when the issue count is greater than 0?</summary>

No. This is not available for Jira yet. It applies only to Harness approvals.

</details>

<details>

<summary>What is the time limit for a pipeline execution?</summary>

A single pipeline run can last 35 days on a paid plan, and 4 hours on a free plan with a verified account.

These limits apply for three reasons:

* Concurrent and queued executions are limited. A pipeline that runs or waits for days or weeks uses capacity that other projects in the account need, and it delays the queue.
* A pipeline that runs for a long time is usually waiting on an approval, a test result, or a deployment that took longer than expected. A shorter timeout shows that the workflow did not finish, instead of waiting with no end.
* Long-running pipelines reduce the availability of Harness resources.

Go to [Deployment logs and limitations](https://developer.harness.io/continuous-delivery/use-continuous-delivery/manage-deployments/deployment-logs-and-limitations.md) for deployment limits. Go to [Pipeline settings](https://developer.harness.io/docs/platform/pipelines/pipeline-settings) for account pipeline limits.

</details>

<details>

<summary>Can you use environment or infrastructure variables as the skip condition for an approval stage?</summary>

No, not when approval is its own stage. That stage can use account, organization, project, or pipeline variables only.

Yes, when the approval is a step inside a Deploy stage. That step can also use environment and infrastructure variables.

</details>

<details>

<summary>When one pipeline deploys multiple services, how do you use one service and its artifact from the previous stage in an approval stage that should run only once?</summary>

Use the expressions for that service output variables from the previous stage. Use the same expression in the next service artifact.

</details>

<details>

<summary>How do you add line breaks when an approval step description uses an expression?</summary>

Use the expression `\\` or `\u000a`.

</details>

<details>

<summary>If an approval step times out, can the deployment continue?</summary>

Yes. Use a failure strategy to move the pipeline forward when the approval step times out. On the approval step, open **Advanced**, then **Failure Strategy**, and select **Mark as Success**. The step succeeds and the pipeline continues to the next step.

</details>

<details>

<summary>Does Harness roll back automatically when a production deployment fails, or do you start the rollback manually?</summary>

You can roll back manually, automatically, or with a hybrid of the two. The hybrid starts the rollback automatically and waits for approval before it proceeds.

Post-deployment rollback is the manual option. Use it when a deployment met the technical success criteria and you still want to roll it back.

Rollback as a failure strategy is the automatic option. If execution fails after a deployment to the environment, the failure strategy starts the rollback. The rollback can be a custom flow or a flow Harness generates.

</details>

<details>

<summary>How do you mark the pipeline successful when an approval is rejected?</summary>

Perform the following steps to mark the pipeline successful when an approval is rejected:

1. Open the **Advanced** tab of the pipeline.
2. Open **Failure Strategy**.
3. In **On Failure of type**, select **Approval Rejection**.
4. Select **Perform Action**.
5. Select **Mark as Success**.

</details>

<details>

<summary>Can a manual approval stage require approver inputs?</summary>

Approver inputs are optional by default. You can enforce a policy that stops the pipeline when the approver input is missing. Apply this policy on the pipeline On Run or On Save event:

```rego
package pipeline

# Deny a pipeline if an Approval step is missing approver inputs
deny[msg] {
    stage := input.pipeline.stages[_].stage
    step := stage.spec.execution.steps[_].step
    step.type == "HarnessApproval"
    count(step.spec.approverInputs) == 0
    msg := sprintf("Approval step '%s' in stage '%s' is missing approver inputs", [step.name, stage.name])
}
```

</details>

<details>

<summary>Does Harness provide pause and resume for a pipeline?</summary>

Yes. Pause and resume is controlled by the feature flag `PIE_DEPRECATE_PAUSE_INTERRUPT_NG`. Harness does not plan to remove the feature. Because of its complexity, use Harness Approval steps instead. Go to [Using manual Harness approval steps in CD stages](https://developer.harness.io/continuous-delivery/use-continuous-delivery/cd-building-blocks/cd-steps/approvals/using-harness-approval-steps-in-cd-stages.md) for the approval step.

</details>

<details>

<summary>Will the approval API support service account keys?</summary>

Not yet. Authentication supports user API keys only. Service account authentication is in development as a feature request.

</details>

<details>

<summary>Can you insert a Markdown hyperlink in the approval message?</summary>

In Slack, separate the link and the text with `|`. Put the link and the text inside `<>`.

Replace the URL and the version with your values:

```
<https://github.com/harness/guestbook/blob/main/.harness/inputover.yaml | Version>
```

</details>

<details>

<summary>Do approval emails in a child pipeline link to the parent pipeline execution?</summary>

No. The approval message links to the child pipeline, not the parent pipeline.

</details>

<details>

<summary>Which pipeline statuses count as concurrent active pipeline executions?</summary>

Concurrent active pipeline executions include active and in-progress executions. That includes executions paused by a Wait step or an approval step. There are plans to exclude pipelines that are waiting for approval.

</details>

<details>

<summary>Can you see who marks a Wait step as success or failure?</summary>

Use a Harness approval step in addition to the Wait step for this case. You can also set a failure strategy if the step times out. Go to [Using manual Harness approval steps in CD stages](https://developer.harness.io/continuous-delivery/use-continuous-delivery/cd-building-blocks/cd-steps/approvals/using-harness-approval-steps-in-cd-stages.md) for the approval step.

</details>

<details>

<summary>How do you pass one user group, or several user groups, into an approval stage?</summary>

Set **User Groups** on the approval stage to `combined`. You can then pass a list of user groups. Harness expects a list, so a plain string does not work. Pass this expression:

```
<+<+stage.variables.groups>.split(",")>
```

The `groups` variable can be one group or a list of groups. Both of these values work:

* `groupA,groupB,groupC`
* `group1`

</details>

{% @harness-feedback/feedback %}
