---
title: "Use JQL to find issues to update"
canonical: "https://support.appfire.com/space/CSOT/68747816/Use%20JQL%20to%20find%20issues%20to%20update"
format: markdown
---
> Macro (aura-html)

# Summary

When transitioning an issue, you may need to update other issues with information from the issue being transitioned. Any issue(s) that can be found by a JQL query is easy to update. More than one issue can be updated with a single post function provided the update that is needed is the same for all issues, otherwise, multiple post functions would need to be used.

# Steps

<span style="color: #333333">The following steps demonstrate how to configure Create on Transition for Jira to update a bunch of issues with the use of the JQL feature:</span>

|  |  |  |
| --- | --- | --- |
| ![image](media://f3d3fbae-c27d-403b-828c-1a976aac543c) | ## Step 1<br>As a Jira Administrator or Workflow Administrator:<br>1. Click the **Cog** icon to open the *Settings* menu and select **Issues**
2. Click **Workflows**
3. Navigate to your workflow and edit your workflow to create a draft version
4. Select the transition
5. Select the *Post Functions* tab.
6. Click* Add post function*
7. Select *Update issues (Bob Swift)* post function and add | ![image]() |
| ![image](media://0c91efc8-6cf6-4d6a-b80e-06a91640a024) | ## Step 2<br>Within the Issue Fields screen:<br>1. Select the *Detailed Fields* tab
2. Add the JQL result to the **Issues to update** field
  1. **%jql_result%** - comma-separated list of issue keys matching the query
  2. **%jql_result_1%** - first issue matching the query<br>> ⚠️ 1. Determine if you want all issues matching the JQL or just the first one.
> ⚠️ 2. Select the appropriate replacement JQL based replacement variable. |  |
| ![image](media://659b8c3b-985d-4d8b-8ee4-e8dc1a4994b4) | ## Step 3<br>Define the JQL used that retrieves the issues that need to be updated.<br>1. Select the *Conditions & Configuration* tab.
2. Enter a JQL query either by entering the query in the *JQL query* field or availing [Use JQL editor](https://appfire.atlassian.net/wiki/spaces/CSOT/pages/68748570/Optional+rules+-+Cloud#Configuration).
3. (optional) To validate your query, click *Use JQL Editor.* You can view the list of issues and also be able to modify your query as needed.<br>> ⚠️ - If you are using substitution variables, make sure values with blanks are quoted.
> ⚠️ - Use an ORDER BY clause if it is important to find only the first issue satisfying the query. |  |
| ![image](media://6090f67a-9b18-4ea3-8a9e-cb4e19b7d801) | ## Step 4<br>1. Ensure to publish your workflow. It is always recommended to save a backup of the previous workflow when prompted.
2. Run a test scenario by navigating to an issue and doing the transition.<br>> ⚠️ - JQL errors are logged. Look for error messages in the app [configuration](https://appfire.atlassian.net/wiki/x/fAcZB). **Note:** This is the most common cause for not getting the expected updates.
> ⚠️ - Remember, the JQL query runs under the user's permission unless you are using **Acting user** support. |  |