Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Auto-fill severity in a bug issue collector

Julia Lang October 17, 2022

I am looking to auto-fill the severity in a bug issue collector. The severity field is a drop-down field with four options. From documentation I have found, it seemed like I should just be able to add severity to the fieldValues, however, nothing happens when I include this code. Any other way to reference severity?

fieldValues : {

description: "Please answer all questions!",

components: '43003',

severity: '11919'

}

1 answer

0 votes
Florian Bonniec
Community Champion
October 17, 2022

Hi @Julia Lang 

Have you check this documentation that seems to allow you to add value for custom fields.

 

https://confluence.atlassian.com/adminjiraserver/advanced-use-of-the-jira-issue-collector-938847349.html

Regards 

Julia Lang October 19, 2022

Hi @Florian Bonniec 

Yes, I worked through the documentation and was still getting stuck. It appears that as long as I have the HTML value for the list field, I should be able to assign the field value as per the javascript above (note: experimented with using '3' and '11919'). Description and component are populating as expected but the Severity is still always set to "None" when the Issue Collector is opened. 

Documentation referencing:

Screenshot 2022-10-19 094911.png

Severity values:

Screenshot 2022-10-19 095127.png

Florian Bonniec
Community Champion
October 20, 2022

Hi @Julia Lang 

I'm not sure but from my understanding you should use something like that

 

fieldValues : {
 'customfield_XXXXX' : '11917'
}

 Where XXXXX is the customfield id for Severity

Then the value is the option id of the option in the list.

In the example from the doc they use priority that is the name of the field but also the id of the field as it's a system field, for customfield id is different from the name and is customfield_XXXX.

issueCOllector.png

 

Regards

Suggest an answer

Log in or Sign up to answer