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
4,361,493
Community Members
 
Community Events
168
Community Groups

Is there any option to populate the component based on the Board where it was created?

Hello community!

Need your advice. 
We have created a few components and boards that show issues with the corresponding component. (ex: Component 1 => Board 1, Component 2 => Board 2....)
Is there any option, when we create a new issue under this board to populate component for this issue automatically? (Issue created on board 2 should have components set to Component 2)

Thank you in advance

2 answers

0 votes

Welcome to the Atlassian Community!

There is a slight problem with this idea.  Boards are not containers of issues, they are a view of a selection.  There is no "created in this board", it's actually "created and happens to match the definition of this board". 

You can create issues from the link to do it in a board where Jira will warn you "issue created, but this board doesn't select it, so you can't see it here"

This means two things to you

  • Issues created "from a board" may appear on other boards.  You can't know which board the user was on when they clicked "create" (or if they used another Create link outside a board!)
  • You can mimic "created on board so set component" with what @John Funk said!
0 votes
John Funk Community Leader Aug 11, 2022

Hi Marlia - Welcome to the Atlassian Community!

Sure you can do that. The trick is that boards are actually based on filters - so you can create an automation that uses conditions based on the filter of your board. So this assumes that each board has a different filter or something like that which makes them unique. 

How many boards do you have? And can you share the filters from each? You can make them generic if you need to for data privacy - meaning project = ABC instead of actual name if you want. 

Hi John! Thank you, happy to hear that it's possible!
So, the example of a board filter:
project = ABC AND component = "Component 1" ORDER BY Rank ASC
and let's say we have 10 boards (from Component 1 to Component 10)

What automation rules can I use?

John Funk Community Leader Aug 12, 2022

Well, there is nothing there that differentiates creating an issue between any of your boards. Which will make it impossible for it to know when board you were on as @Nic Brough _Adaptavist_ says. 

So the only other thing I can think of is to add a new custom field with a dropdown of values related to the Components and make the field mandatory for your Create screen (you would actually do that in the Field Configuration for the project). Then you can use automation to copy the value to the Components field, or just change your board filter to use the new field instead of the Components field. 

Thank you John.... I was thinking probably it can be somewhere in the board settings or something like this (kind of default values for issues created from this view).

Could you please explain what is the reason to use an additional field instead of Component? Can't we make the Component field mandatory in such case?

Like John Funk likes this
John Funk Community Leader Aug 18, 2022

Yes, you can certainly make the component field mandatory - that would be the more straightway approach. I thought you were trying to use other terminology than component for them. But definitely go with that.

Like MarIia likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Jira Software

An update on Jira Software customer feedback – June 2022

Hello Atlassian Community! Feedback from customers like you has helped us shape and improve Jira Software. As Head of Product, Jira Software, I wanted to take this opportunity to share an update on...

5,076 views 18 32
Read article

Atlassian Community Events