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

hi,

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.

Regards,

B.Naganandu

4 answers

Rather than this, if you can tell us what you are trying to achieve there may be different solutions.

hi,

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.

Regards,

B.naganandu

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

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Featured Groups

Tuesday tips & tricks: What is the Atlassian Community?

It's officially Tuesday, which means it's officially time for another tip to help you better navigate this space we call the Atlassian Community. 😄 I got a great question from community member, Sa...

120 views 6 8
View post

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