I have recently developed an automation process that performs advanced filtering on issues. I would like to know if there is a way to add these filtered issues to a specific filter or a dashboard gadget. Additionally, I need guidance on the appropriate API request to use and the structure of the payload for this task.
Hi Devashish!
I'm Felipe from ServiceRocket support team.
Great question!
In Jira Automation, while you can't directly add issues to an existing Jira filter from automation, you can achieve a similar result by using automation to modify issues in a way that they become visible within a specific JQL-based filter. Here's a recommended approach:
labels = automation-filteredor
"Custom Field Name" = "value-set-by-automation"
If you specifically want to manage filters programmatically through REST APIs (e.g., for automation from an external script), here's a general approach:
{
"name": "Automated Filter",
"jql": "labels = automation-filtered",
"description": "Filter created via automation script",
"favourite": true
}
In most cases, the first option (using labels/custom fields) is simpler and integrates seamlessly with Jira's native automation features.
Best,
Felipe
Hey Felipe,
Thank you for the solution. I have been looking to achieve something similar. You approach saved me a tons of time
Best regards,
Devashish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Felipe,
Thank you for the solution. I have been looking to achieve something similar.
Best regards,
Devashish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.