One of the easiest ways to automate Jira to add a component to an issue is to create a project rule using Automation for Jira.
I created a rule for a project to add a specific component to a specific issue type when the issue is created in Jira.
In this use case, when the Project issue type is created in the Counsel Review project, the component, Experience Counsel, is automatically added to the issue. We also use the Component Watchers plugin which when the issue is created, an email message is sent by Jira to the Component Watchers, automatically notifying them of the creation of the issue for visibility.
This is a real time saver for the Component Watchers who monitor the Project issues in this project by not having to log in to Jira to check their dashboards to see if new issues have been created.
I also recommend that the actor be a service account and not any specific user to keep the rule creation not based on a single user.
I hope this rule sample helps you automate your Jira issues.
Joe
@Joe Pursel I love that you're using a service account for the Automation actor. In Cloud, this is the default (Automation for Jira has its own app user on Cloud) but on Server - yes - definitely set up a service account to run Automation rules. I like that yours is even somewhat scoped so it might even indicate which team to contact if there's a problem.
And for the lazy, I think the Component Watcher app mentioned is Watch It for Jira . 👀