Hi Community
How to pre-fill the in Jira dropdown field with a value from the URL ?
i tried just with the Follow URL but its not working. any idea ?
I Found the Answer and Want to share with Community :
when using a Select List (single choice) custom field like the Priority field you have defined in your request form of the link shared, you need to use the values of the field and not the labels. So e.g. if you want to pre populate the Priority field in your request with the Blocker you would need to use the following URL: https://domain.atlassian.net/servicedesk/customer/portal/19/group/63/create/312?customfield_13070=14404 that uses the value 1234 instead of the label "Blocker" for that particular option of the Priority field. I believe that the easier way to get these values would be to get them from the URL when editing a particular option in the specific custom field to check. So e.g. for the "Blocker" of the Priority field you can get the value by following these steps: 1) Go to the Custom Field section of your instance https://domain.atlassian.net/secure/admin/ViewCustomFields.jspa 2) Search for the relevant field (e.g. https://domain.atlassian.net/secure/admin/ViewCustomFields.jspa?customFieldStatus=Active&page=1&searchFilter=Priority ) 3) Click on the ... dots option and click on Context and default values (e.g. https://domain.atlassian.net/secure/admin/ConfigureCustomField!default.jspa?customFieldId=13070). 4) From the menu click on Edit Options (e.g. https://domain.atlassian.net/secure/admin/EditCustomFieldOptions!default.jspa?atl_token=354db63a63d56977c42a36b087cc03e2b732acc9_lin&fieldConfigSchemeId=14225&fieldConfigId=14225&customFieldId=13070&returnUrl=ConfigureCustomField%21default.jspa%3FcustomFieldId%3D13070 notice that the atl_token might expire so this link might not work) 5) From the list of options click on Edit and get the value from the selectedValue= URL query parameter of the URL after you click on Edit (e.g.https://domin.atlassian.net/secure/admin/EditCustomFieldOptions!edit.jspa?fieldConfigId=14225&atl_token=354db63a63d56977c42a36b087cc03e2b732acc9_lin&selectedValue=14404 14404 from the Blocker option, 14405 for the Critical option, 14406 for the Major option, 14407 for the Minor option and 15248 for the Trivial Defect (disabled) option). Other than that you could get the values as suggested in the Feature Request shared by analyzing the JSON contents of the request create page HTML source using the Developer tools in your browser.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.