Questions for Confluence license has expired.

Please purchase a new license to continue using Questions for Confluence.

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

 
1
0
-1

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?

  1. Ariel Aguilar

    Hi there!

    Can you try the following:

    def defaultComponent = "ENG"
    def component = nodeHelper.getComponent(defaultComponent, nodeHelper.getProject(issue.projectKey))
    issue.components += component

    Kind regards,
    Ariel

CommentAdd your comment...