how to track project drop-down change event to execute javascript


i am new to jira, i installed 30-trail version of jira 5.2.7

i have two projects (Jira 4 upgrade, Demonstration) (in the project dropdown).

i have 3-fields , sfirstname , slastname & sFullname.

the requirement was:

if user select project is "Jira 4 upgrade" then: sfullname = sFirstname + sLastname

if user select project is "Demonstratio" then : sfullname = sLastname + sFirstName.

Note: 1) select 'jira 4 upgrade'/'demonstration' in the main page (back groud page of current screen).

2) click + creat an issue. (+ sign)

3) fullname javascript is working fine.

But: if i change project 'dropdown' on create issue page (pls refer screen). the javascript not working.

please guide me , how to resolve this.

thanks in advance.



4 answers

0 vote
Renjith Pillai Community Champion Apr 04, 2013
Rather than this, if you can tell us what you are trying to achieve there may be different solutions.


i am using same fields in the different projects.

how to implement : different logic for different projects on same fields.

ex: if one-project: fullname = firstname+lastname logic.

but second-project: fullname= lastname+firstname logic. should execute on project dropdown selection

how to achieve this , please help on this.

thanks in advance.



if your script is working but not working on project change then check the my answer

Suggest an answer

Log in or Join to answer
Community showcase
Jason Wong
Published yesterday in Agility Beta

Welcome to agility

Every team in the world is unique, and so   Atlassian believes   that each and every team's best way of working  needs to  be molded to their unique circumstances  – ...

311 views 6 15
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot