Is it possible to have Component auto-populate for epics upon creation?

Matthew Simone March 12, 2020

We have Component as a mandatory field for all Jira projects but we'd like to have all Epics have the same default component when they are created?

Alternatively, we could also remove the 'required' attribute from the Component field for Epics for all projects, leaving it mandatory for other issue types. But everything I've read so far seems to indicate this is difficult and/or not possible.

Thanks!

2 answers

1 accepted

0 votes
Answer accepted
Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 12, 2020

Hi @Matthew Simone,

Welcome to Atlassian Community.

You could use an Automation rule to do this. We use it to set the component and label field on issues associated with an Epic.

Atlassian just started rolling out Automation rules so you should be able to see it under either Project settings or Jira settings.

Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 12, 2020
Deleted user June 16, 2020

I have not been able to do this when the field is a required field. Since the automation is triggered at creation and not when you hit the create button. So when you save the issue without it having the required field filled it will do that check first before creating the issue. Hence it isn't possible to have an automation rule fill it for you.
1. Automation rule upon Create Issue
2. Edit Issue field (Component set to what ever component you want to autofill).
3. Create an actual issue (Components field is not auto filled yet)
4. Fill all required fields except Components
5. Hit Create button in Create Issue screen
6. Error because the required field is not filled

The automation should autofill when you hit the create button that opens the create issue screen but that is not possible with automation.

Like Chris Kibbey likes this
1 vote
Krishnanand Nayak
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 12, 2020

you will need to use a plugin similar to scriptrunner to achieve this

Suggest an answer

Log in or Sign up to answer