How Can I Update the Priority Property in a Linear Ticket Using the "Update Issue" Action?

This topic was automatically generated from Slack. You can find the original thread here.

I need to update the priority property in a linear ticket but its not showing when I’m using the “Update Issue” action. How can I do this?

To update the priority property of a Linear ticket using Pipedream, you can use the “Update Issue” action. However, if the priority property is not directly available in the action’s UI, you might need to pass it as a custom field or through a custom API request. Here’s how you can proceed: 1. Search for the Linear (OAuth) app in the Pipedream step menu. 2. Select the “Update Issue” action. 3. Connect your Linear (OAuth) account. 4. Select a Current Team or pass a string from a previous step. 5. Select an Issue or pass a string from a previous step. If the priority field is not available directly, you can use a custom API request to update it. Here’s how you can do it using a Pipedream code step: ```
import { axios } from “@pipedream/platform”; export default defineComponent({ props: { linear: { type: “app”, app: “linear”, }, issueId: { type: “string”, label: “Issue ID”, description: “The ID of the issue you want to update”, }, priority: { type: “string”, label: “Priority”, description: “The new priority value for the issue”, }, }, async run({ steps, $ }) { const query = mutation { issueUpdate( id: "${this.issueId}", input: { priority: "${this.priority}" } ) { success issue { id priority } } } ; const response = await axios($, { method: “post”, url: https://api.linear.app/graphql, headers: { Authorization: Bearer ${this.linear.$auth.oauth_access_token}, “Content-Type”: application/json, }, data: { query, }, }); return response.data; }, });

where can I update the API permission access?

To update the API permission access in Pipedream, you can manage your API key through your Account Settings. If you need to revoke your API key, you can do so by clicking the REVOKE button next to your API key. This action will revoke the original API key and generate a new one, ensuring that any requests made with the old token will result in a 401 Unauthorized error. If you need further assistance, please visit Pipedream Support for more support options.