Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

How to auto-populate "Component/s" field with "User Variables" in Templates



I just started work with my company this week and have very basic experience with Jira.

I have been given the task of creating templates for different functions in our group. 

I have installed the "Issue Templates" plug-in installed and can see how to autopopulate certain fields in new issues with "User Variables" and by selecting the template I created. 

The one thing I can't figure out is how to auto-poulate "Component/s" with the same user-variables when a new issue is created.

Can someone tell me how to do this? It looks like this is not a standard option.

1 answer

@Will Ferry Hope all is well and welcome to Atlassian community. I hope you can find all the help you need here. 

Here is a youtube link to help with the issue you are facing:

It looks like you will need the component to be on the issue screen you are wanting to have the field available to. Typically components are project by project. So you would have to state those. There is another add-on app that allows you to push sets of component in a templated format to other projects. I am sure this app can do this also as it show in the video how to add fields to the screens etc.

Typically if you set up components per project you can also add the component lead and set that as the default assignee by setting the component lead user drop down and then setting the next drop down to component lead.


I hope this information helps you and let us know the outcome. 

Hi Aaron. Thanks for the reply - and for responding so quickly.


In our groups, components are currently added manually after the issue is created. What I'm told we use for components are Project Name and Group Name. Components are used by other groups outside our own to filter and sort the activities our group is working on and I'm told it will be difficult to change this, since there are so many people involved.


What I'd like to do is have two user-defined variables on the template (ProjectName and GroupName) and then have these added as components when a new issue is created and the template is selected.


I can do this with labels but it seems that I can't do the same thing with Components.

It always shows up as "None" in the create issue dialogue box and the template create issue dialogue box. 


Someone in our group told me it would be possible with ScriptRunner plug-in. Is this the one your are referring to?

Like Aaron Geister likes this

@Will Ferry It is possible with script runner but it is also possible I believe with another add-on which is for replicating components from project to project in a templated format. 


I would review scriptrunner and this Octo to see which might work better for you. Scriptrunner is a little bit to learn as its groovy scripting. But its very powerful.

Hope this helps answer your questions. 

Okay thanks a lot. I'll check out Octo!

Suggest an answer

Log in or Sign up to answer

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you