Hi there,
i'm searching for a way, to create a customfield which uses checkboxes as a yes/no - option and if you choose "yes", there is an information (as a URL - link to Confluence) that tells you what is need to be done.
any ideas?
here a fast scribble to explain what i'm looking for.
You could put the link in the field description, but it would be independent of the selection.
If that's not working for you, then you'll need some code. The Behaviours part of the ScriptRunner App can do this sort of thing, but you can also hack in some javascript (not recommended though)
Can you tell me bit more about the scriptrunner behaviour part.
i looked up the documentation and tried a bit in our testing environment. I could paste a default value to my field, i.e. a link to confluence. But is it also possible to paste Information outside of a field?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, fields are the only variables on a page, so they're the only thing you can amend.
With a Behaviour, you should be able to handle a dummy field (I'd use a url field rather than text)
By "dummy", I mean that you add a bog-standard custom field, placed on the edit screen below your radio-button. Without any behaviours, the field would appear for the users, initially empty, and be enter-able.
With behaviours, you should be able to pre-populate it with data and make it read-only, and hidden unless "yes" is selected in the other field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Nic!
your suggestion sounds great, i'll try that one :-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nic,
could you give me another hint?
i prefilled an URL field with a link an then tried to only show it, if the radio button has value "yes". But the URL field doesn't show in the view screen but only in the edit screen.
how has the condition look like to work?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Does the field have a value when you're trying to display it? Jira will only show custom fields if they have content.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
yes i prefilled it with an URL. And as it is shown filled in the edit screen, it should also be shown in the view screen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry, but I don't understand the context of "prefilled" on a view screen. There's either data in a field or there is not, and it doesn't change on view.
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.