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

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

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

This widget could not be displayed.

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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted 7 hours ago in Statuspage

What are your best incident management tips and stories? #HugOps

 👋Community members! Downtime happens. And great incident response takes a village. Teams like Support, Dev, SRE, Ops, IT, and Marketing have to come together to resolve the problem while keep...

25 views 0 2
Join discussion

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