update components of issue if without removing existing one

Paresh Gandhi
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.
June 19, 2014

I want to set multiple component to an issue. I'm able to achive that using

issue.setComponentObjects([CellphoneComponent, DesktopComponent])

Now, i want to pass all the components (in above example 2) into single variable or i want to update it without replaceing it with last one.

1 answer

1 accepted

2 votes
Answer accepted
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 20, 2014

You need to read the current list of components and add your two new ones to the list before writing it back.

Suggest an answer

Log in or Sign up to answer