I'm trying to use AJS and REST services, where to Include AJS framework?

Hi,

Im not coding a gadget or plugin, I want to edit an HTML screen file and I want to execute some javascript on submiting the issue, lets say on Edit Issue button Click?

1 answer

1 accepted

0 vote
Mizan Community Champion Mar 12, 2012

You can add javascript to the field's description . Have a look at these tutorials for javascript and Ajs in jira fields.

Hello Mizan,

What if I need a wider scope and not on the field description, If I need to read a value from 2 fields and then decide. Where I find the field descripion and does JIRA by default refrence AJS or I need to include it? more details please

thank you Mizan :)

Mizan Community Champion Mar 12, 2012

Yes you can decide by reading the values from 2 fields. You will have to include this logic of checking the 2 fields in your javascript and place this javascript in the fields description . AFAIK AJS is by default. you can even use the behaviours plugin to add behaviours to your fields.

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 Thursday 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 ...

71 views 0 11
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