Is it possible for the Issue Collector to set Fix Versions?

We really like the idea of using the Issue Collector but it's crucial for us to auto-set the Fix Version of every issue created by the Issue Collector. Reading the documentation it appears that it might only be doable via custom javascript which I tried but Issue Collector is showing errors.

Has anyone managed to successfully configure the Issue Collector to auto-set the Fix Version field?

1 answer

1 accepted

Hi Thomas,

Thank you for the prompt feedback. 

I don't have the technical knowledge to fully understand your solution, or how to go about implementing it on my end.

Would you mind providing more details?

The example is a javascript file you can include in any page (as long as jQuery is there), the first lines get the issue collector from JIRA (you can get the right URL in your issue collector settings. The functions below set fields in the issue collector form, e.g. window.ATL_JQ_PAGE_PROPS = jQuery.extend(window.ATL_JQ_PAGE_PROPS, { '19153ff3' : triggerFunction : function( showCollectorDialog ) { jQuery('#collectBug').click( function(e) { e.preventDefault(); showCollectorDialog(); }); } , fieldValues: { versions : "10400", } } modifies the issue collector which was loaded by the ID 19153ff3 in that way, that is is shown when you click on an element with the ID "collectBug" and sets the version field in the for to the version with the ID 10400. Of course you have to include the field in the issue collector definition in JIRA - otherwise this would not work. Maybe you could just give it a try as far as you understand and post an example of what you have so far here...

Thank you very much! this definitely explained it for me. will try it out and let you know the results soon.

Forgot to mention the fields I have configured in the Issue Collector form: Summary Description Priority Attachment Name Email

When I try your testfrom I receive the error errors":{"versions":"Version with id 'Hosted Tools - Phase 2' does not exist."}} You have to use the ID for the version and not the name. You can find the id by looking at the links on the project version tab.

Where were you able to find the error message "errors":{"versions":"Version with id 'Hosted Tools - Phase 2' does not exist."}}"?

Sorry for the long delay - I looked in the response object with the deveopment tools of my browser (F12 in chrome)

Thank you Thomas, next time I get errors I'll keep an eye for this object. Your solutions works like a charm! thank you very much for all your help.

Thomas, one last question. your solution sets the Affected Version. Is there a way to set the Fix Version rather?

Just set it in a regular JIRA create issue action and look at the POST with the development tools (F12 as said before) - there you can see the parameter which is send.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

25,447 views 2 7
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