Pre-set Component for Issue Collectors?

Is there anyway to preset the component in the component field in issue collectors? or any other fields for that matter?

We create feedback forms for specific applications so we know what the component will be. However we have multiple components in the project that we do not want external clients to see in the drop down.

4 answers

1 accepted

Hi

Thanks!!

This was very helpful! However it didnt completely answer the component part. It listed it for the basic fields like (Summary, description, name, etc...)

Component was a little bit different and after a bit of researching online with the information provided in the documentation, I was able to preset the component field with the following code

trigger function

...

fieldValues: {
      components: '10000'
    }

Hopefully they will update the documentation to provide this infomation in the future
Thanks again for the help!

Oh, sorry - didn't realize you wanted explicit instructions. Glad I was able to get you on the path to your answer though! :D

Does this mean that you have to use the Component ID or do you have a component named 10000?

The 10000 is the internal ID of the component value, not the ID of the field (as its not a custom field).

Components should not be set to their value but to their ID. This is a number as per the example above your post. you can find out the number by looking at the source code of the page that has the component field.

You can! There are instructions for On Demand here. :)

Hi, can you guys help me a little further with the components... i am not able to get the components field successfully prepopulated using the following. Everything else does populate. PSNOW is a valid component for the project. What am I missing?

fieldValues : {
summary : 'Test',
description : '123',
components : 'PSNOW',
fullname : 'Katy',
email : 'myemail@company.com'
},

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Amir Kazemi
Posted 3 hours ago in Jira

We want to know what Jira Service Desk apps you're using!

Hi Community! My name is Amir and I’m on the Jira Service Desk product marketing team at Atlassian. Our team would love to understand how you’re leveraging our ecosystem for Jira Service Desk. Wha...

15 views 0 3
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you