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
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,063 views 4 9
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