Forums

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

Create Issue URL with Custom Field not validating

Jessica Kizmann October 6, 2022

Hi there!

I am looking to create a URL that preselects fields for an issue creation screen. This is the URL:

https://[our domain]/secure/CreateIssueDetails!init.jspa?pid=10001&issuetype=10005&customfield_10067=Platform

 

This is throwing this error:

customfield_10067: Specify a valid value for Dev Team

 

And it's not selecting "Platform" as it should (see screenshots).

customfield1.png

customfield2.png

 

The custom field type is a multi-issue selector. What am I missing here?

1 answer

1 accepted

0 votes
Answer accepted
Stefan Salzl
Community Champion
October 6, 2022

Hi @Jessica Kizmann ,

TBH I haven´t ever tried this way of creating issues. As the field seems to be a multi-select field and from what I can see from this documentation a multi-select field takes an array of strings or the id of the value.

Could you please give it a shot wether this solves the problem?

Best
Stefan

Jessica Kizmann October 6, 2022

I know how to find the ID of the Custom Field itself, but do you know how I can find the ID for the value? (In my case, the ID for Platform)

Stefan Salzl
Community Champion
October 6, 2022

mkay. just tested this in my site and could only do it with the ID.

usually i get such information via the API. So in this case I chose the needed option in an issue and did a "get issue":

<your_domain>/rest/api/3/issue/{issueIdOrKey}

 

This will return a JSON of your issue. You can then search for your custom field and it will show the value and the value´s ID. I just tested your call with the option´s id and it worked.

Please let me know if you have any further question.

 

Best
Stefan

Jessica Kizmann October 6, 2022

Thank you Stefan! That worked!

Stefan Salzl
Community Champion
October 6, 2022

great job @Jessica Kizmann 💪🏼

good to know you got that working.

Please consider to hit the accept button in the answer in order to mark this post as resolved and make it easier for other users to find a solution in case they are faced with a similar problem.

Best
Stefan

Like Jessica Kizmann likes this
Tenzing Doleck
Contributor
January 26, 2024

@Jessica Kizmann @Stefan Salzl  any chance you guys can share the exact code. im trying to have a team preselcted as well in the url

Like Stefan Salzl likes this
Stefan Salzl
Community Champion
January 26, 2024

Hi @Tenzing Doleck 

what type of field is it? Could you show a screenshot?

Best
Stefan

Tenzing Doleck
Contributor
January 26, 2024

multi select field ; 

Tenzing Doleck
Contributor
January 26, 2024

Select List (multiple choices) ; 
can i just use the value? 

eg 

customfield_10074=team a

Stefan Salzl
Community Champion
January 26, 2024

Hi @Tenzing Doleck ,

I haven‘t tried this since my last answer (which is more than a year ago). As mentioned in the original post the value didn‘t work. Furthermore I‘m pretty sure that (if the balue works) it needs to be in quotation marks if there is a space in it (guess that might be a reason why it should be done with the id). Have you tried the suggested solution?

Best
Stefan

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events