# How can we set a default value for components in incoming sync?

**URL:** <https://community.exalate.com/t/how-can-we-set-a-default-value-for-components-in-incoming-sync/5380>\
**Category:** General Questions\
**Tags:** jira-datacenter, configuration, migrated\_question\
**Created:** [November 4, 2024, 8:01am UTC](https://community.exalate.com/t/how-can-we-set-a-default-value-for-components-in-incoming-sync/5380 "2024-11-04T08:01:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xl8bot](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/xl8bot/32/324_2.png) [@xl8bot](https://community.exalate.com/u/xl8bot)\
**Post date:** [November 4, 2024, 8:01am UTC](https://community.exalate.com/t/how-can-we-set-a-default-value-for-components-in-incoming-sync/5380/1 "2024-11-04T08:01:09Z")

</div>

_Originally asked by Support on 19 December 2022 [(original question)](https://oldcommunity.exalate.com/questions/58497869)_

* * *

Hi there,

I want to set “ENG“ as component value in the sync issue. So I have given

issue.components.value = “ENG“. it is showing error.

Could you please suggest any ideas?

* * *

#### Comments:

> **Ariel Aguilar commented on 19 December 2022**
>
> > Hi there!
> 
> Can you try the following:
> 
> ```auto
> def defaultComponent = "ENG"
> def component = nodeHelper.getComponent(defaultComponent, nodeHelper.getProject(issue.projectKey))
> issue.components += component
> 
> ```
> 
> Kind regards,  
> Ariel

---

<div class="post-metadata">

**Author:** ![Javier](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/javier/32/338_2.png) [@Javier](https://community.exalate.com/u/Javier)\
**Post date:** [May 22, 2025, 10:59pm UTC](https://community.exalate.com/t/how-can-we-set-a-default-value-for-components-in-incoming-sync/5380/2 "2025-05-22T22:59:05Z")

</div>


