Is it possible to do field level scripting in JIRA?

whenever an user enters values into custom field ,we have to update the data to another one custom field,with user name and value entered in the first custom it possible in jira to do scripting at field level.

3 answers

Thank you.

could you please explain in detail about this since Im new to jira dev.

public class YourListenerClass extends AbstractIssueEventListener implements InitializingBean,DisposableBean
	private final EventPublisher eventPublisher;
	public YourListenerClass(EventPublisher eventPublisher)
     * Called when the plugin has been enabled.
     * @throws Exception
    public void afterPropertiesSet() throws Exception 
        // register ourselves with the EventPublisher
        System.out.println("Installed or Enabled");
     * Called when the plugin is being disabled or removed.
     * @throws Exception
    public void destroy() throws Exception 
        // unregister ourselves with the EventPublisher
        System.out.println("Disabled or Uninstalled");
    public void onIssueEvent(IssueEvent issueEvent)
		Long eventTypeId = issueEvent.getEventTypeId();

the above is the template for your listener

I suggest Listener is the good option. You need to write your own plugin.

#1) You get the sdk. This document help you.

#2) Now practise helloworld plugin. Refer

#3) Following the below link

you develop your listener

<atlassian-plugin key="${project.groupId}.${project.artifactId}" name="${}" plugins-version="2">
        <vendor name="${}" url="${project.organization.url}" />
        <param name="plugin-icon">images/pluginIcon.png</param>
        <param name="plugin-logo">images/pluginLogo.png</param>
	<component key="<SomeListener_Key>" class="<your Listener class relative path>">
		<description>Some description.</description>

probably the above code should present in your atlassian-plugin.xml

Yes it is possible by using a workflow postfunction or listeners to ISSUE_CREATED or ISSUE_UPDATED events.(needed Java Coding)

Otherwise you can place some javascript to read the values from the cusfomfields. I'm not much familier with Jira Java Script. You can go through the link which give some idea.

0 votes

Yes... write your own javascript hooks, or behaviours plugin, or (I believe it's called) Live Fields in JJUPIN.

And a few other plugins.

For rolling your own javascript, there are lots of questions about that here.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,043 views 13 18
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
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