Hello,
I've tried following the scripts in these questions:
https://answers.atlassian.com/questions/223068
https://answers.atlassian.com/questions/43534
I'm still not getting any results. Is there more than just entering the script into the description field and updating the custom field ID?
Thanks!
Those two questions are ancient and irrelevant to newer versions of JIRA (especially as the ability to run dodgy javascript as part of fields is being reduced because it breaks so much and so often)
Could you explain what you mean by "custom field behave like component section"? What are you looking for?
e.g.
Currently my single select custom field has a list with all the available options, but I would like to have it appear like the component field so the user can start typing and have relevant options appear.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This works for me on a Custom Field of type Select List (multiple choices) - make sure to put this: on the Field Configuration, on the Custom Field, click edit, put the following JavaScript in the Description. Earlier versions of JIRA let me use it directly on the Custom Field description, but after a recent upgrade I had to make sure to use it on the Field Configuration.
<script type="text/javascript"> AJS.$("#customfield_10698 option[value='-1']").remove(); (function($){ new AJS.MultiSelect({ element: $("#customfield_10698"), itemAttrDisplayed: "label", errorMessage: AJS.params.multiselectComponentsError }); })(AJS.$); </script>
Make sure to edit the Custom FIeld ID in the two spots in the JavaScript to match your custom field id value.
Hope it helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm also on 6.4. Did you make sure to change the occurrences of "customfield_#####" to whatever your custom field id is? Did you place this script on the "Field Configuration" description for the custom field instead of directly on the custom field's description? One issue w/ this script is that it will only work if the issue type is first selected, it won't render if you have to change the issue type in order to see this field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The field is not issue type dependent and both field IDs are changed in the configuration description.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I found that this script worked for one field, that had just text options, but when I had things like below (it didn't work). Any ideas?
A.1.a - commercial
A.2.a - worker
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.