Forums

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

How to set value of type "Select list (multiple choices)" using direct HTML links in Jira Server?

Айри Мизуно September 18, 2020

Hello, everyone

Did you know how to set value of type "Select list (multiple choices)" using direct HTML links in Jira Server?

There is custom field with multiple choices from select list.

I try this:

https://jirabaseurl/secure/CreateIssueDetails!init.jspa?issuetype=10100&pid=22111&reporter=testuser&customfield_1440020=[Users]

https://jirabaseurl/secure/CreateIssueDetails!init.jspa?issuetype=10100&pid=22111&reporter=testuser&customfield_1440020=Users

"Users" one of options in the select list of field. 

https://jirabaseurl/secure/CreateIssueDetails!init.jspa?issuetype=10100&pid=22111&reporter=testuser&customfield_1440020=[22000]

https://jirabaseurl/secure/CreateIssueDetails!init.jspa?issuetype=10100&pid=22111&reporter=testuser&customfield_1440020=22000

22000 is the id of option.

But all the time I have error : Invalid value 'myvalue' passed for customfield 

Thank you )

1 answer

1 accepted

0 votes
Answer accepted
Gustavo Félix
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.
September 18, 2020

Hi @Айри Мизуно 

I tried and this option works for me:

https://jirabaseurl/secure/CreateIssueDetails!init.jspa?issuetype=10100&pid=22111&reporter=testuser&customfield_1440020=22000

I just had to add the summary field.

When I add a different value for the select, let's say "0000" the error says 
"customField_1440020: Invalid value '0000' passed for customfield 'nameOfField'. Allowed values are "1440020[Users], XXXXX...."

Does your message also shows you the allowd values?

Айри Мизуно September 20, 2020

Hi, @Gustavo Félix 

I was wrong. I used fieldConfigId instead of selectedValue. So this solution is work with the correct id:

https://jirabaseurl/secure/CreateIssueDetails!init.jspa?issuetype=10100&pid=22111&reporter=testuser&customfield_1440020=22000

No, error message didn't shows allowed values.

Thank you.

Like Gustavo Félix likes this

Suggest an answer

Log in or Sign up to answer