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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Marketplace Apps

Tips on how to choose the best estimation method for your planning

Planning and grooming sessions all come with their own sets of rules. Team members meet to estimate stories or other work items, all according to an agreed-upon process. And with every session comes ...

33 views 0 10
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