How to avoid values bring copied from previous issue when you create issue using Create another optn

When we create an issue using the "create another" checkbox, it copies all the values from of the checkboxes and the notes from the previous issue. This is creating major lapses in the data that is captured as wrong information is being saved due to this error. Please help on how to avoid this issue or how to fix this issue. thanks. 

Screen Shot 2017-09-03 at 11.07.23 PM.png

1 answer

0 vote

Hi Aziz,
Sorry to hear that this is a problem.  However from looking into this, it appears that this is by design in JIRA.  There is an open feature request to provide some option to disable this in https://jira.atlassian.com/browse/JRASERVER-36827  I would recommend that you vote on that issue, comment there, and watch this for updates.     

Instead if this is a problem, I would recommend hiding the "Create Another" option entirely from appearing on the screen at all with the steps below.

  1. Within JIRA you can first find a custom field that appears on this screen.  
  2. Then edit the custom field description so that it includes this script below - Editing a fields description explains this.
  3. Save/Update that field description.
<script type="text/javascript">
(function($) {
    AJS.toInit(function(){
        // init on load
        AJS.$("#qf-create-another").hide();
    AJS.$("label.qf-create-another").hide();

    })
    JIRA.bind(JIRA.Events.NEW_CONTENT_ADDED, function (e, context) {
        // init on refresh
        AJS.$("#qf-create-another").hide();
    AJS.$("label.qf-create-another").hide();
    });
})(AJS.$);
</script>


This way when the browser loads any screen that displays this field, it will also run this javascript that in turn will hide this field from the browser view.   It's a bit of a hacky to make this work, and this kind of customization is also explained as option #4 in https://confluence.atlassian.com/jira/fields-allowing-custom-html-or-javascript-224401453.html

But I think this at least could help hide that option as a means to address this problem.

Note: When following this work-around, this "Create another" option would only be hidden on create popup screens that contain that specific custom field on that screen.  So this won't effect all projects in JIRA unless the custom field where you add this script exists across all the create screens for different projects.   Also changing a field description like this would then also apply to any other projects that are also using this same field configuration in JIRA.  If you only need to do this for a single project, it's best to make sure that you either create a new field configuration for that project and edit that, OR select a custom field that only appears on this specific project.


Thank you Andy for your detailed reply.

 

It is particularly interesting to me that I am able to add custom javascript in order to hide the create another option. This leads me to think perhaps with javascript I could override the values and reset all the checkboxes to the default state? If yes please help me further and I would prefer taking that route. 

I feel the "create another" option is important and I would like it to be there.

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 Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

90 views 0 5
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