Forums

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

Additional field for Other option in a select list

Lior Israeli
Contributor
March 1, 2012

I have a select list with several option.

I would like have an option called other and when this option is selected a new field (enter value for other) will show up/prompted

I would like this field valid/appear only if Other was selected as an option

2 answers

0 votes
Mizan
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.
March 18, 2012

You can even use the behaviours plugin which i guess is included in the Ondemand version . there is a similar example here

Mizan
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.
March 18, 2012

OK , so behaviours plugin is not bundled with Ondemand , its a very helpful plugin it should come with ondemand also . you will have to go by the javascript approach . Have a look at this document and javascript should work in ondemand

Sergey Papurin
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.
March 19, 2012

JIRA Toolkit Plugin is installed, so you can create new customfield - Velocity processed Message Custom Field (for edit) and set it's default value with your javascript.

Lior Israeli
Contributor
March 19, 2012

Thank you, but can you please explain in more dtail, especially the part "set it's default value with your javascript."?

How this is done?

Sergey Papurin
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.
March 19, 2012

For your new customfield create new Configuration Scheme or edit default and edit default value. Javascript code you can find in link i gave earlier - http://confluence.atlassian.com/display/JIRACOM/Using+JavaScript+to+Set+Custom+Field+Values

Lior Israeli
Contributor
March 19, 2012

I read through the link you sent but I am not any wiser :(

Either my lack of knowledge of JIRA or my lack of understanding.

I have created a custom field called Comments1

I want it to have the value of the system Comment field.

Can you please tell me, what code should I use and where should I put this code?

0 votes
Sergey Papurin
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.
March 1, 2012
Lior Israeli
Contributor
March 17, 2012

Can I use JavaScript with OnDemand?

Sergey Papurin
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.
March 17, 2012

Do you mean onclick and etc function? You can write on javascript, jquery, ajax using functions and external .js files without any limits. Also see JIRA Toolkit plugin (https://plugins.atlassian.com/plugins/com.atlassian.jira.toolkit)

Lior Israeli
Contributor
March 17, 2012

As I said, I am using JIRA On-Demand and therfore cannot is plugins.

Sergey Papurin
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.
March 17, 2012

Ok, you can use description of customfield and write your javascript code in it.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events