Issue Collector & REST

Is there a REST endpoint for calling the issue collector via AJAX?

If not, I can save an issue thru the REST API but I want to put in the Environment field into our issue just as the collector does? I see where I can set renderedFields: { "environment":  ""} and it doesn't fail, but it doesn't display either.

It also appears the fullname & email of the collector is just placed into the description but is there a renderedFields version of the description?



Environment is not an option to choose, Issue Environment & Repaired Environment are but those don't display data either. Besides, when the collector makes the issue, Environment shows up without having to mess with our screens. 
I've read that doc and it doesn't help me with what I need to do. I can't use the collector as it's currently available in JIRA because we won't expose our JIRA installation to the public internet. So I want to create the same functionality with our own forms to make AJAX calls to our middle tier that will proxy the requests over to our JIRA installation. 
I can capture the data, simple enough, but I have to use the REST API to do the saving. So I want the Environment and the HTML formatted Description just as the collector does now.

2 answers

1 accepted

Do you have the "Environment" in your View Screen? Can you check that. Also, the Issue Collectors are designed to render Name and Email address in the Description. They are not actual "custom fields". As you can see, you cannot make them required because they are not actually fields in JIRA.

Have a read here and take a look at your other options

The question around the view screen ended up being correct. I was looking at the Edit screen config and not the View screen config. Putting Environment into the View screen config made it show up in JIRA. PEBKAC.

You will have to get the "Environment" details (Browser version, resolution, etc..) manually then, using a javascript/jquery. The HTML Formatted description is a bit more work, since JIRA is using it's own "JIRA Wiki Renderer" on the  description. You may need to convert this html tags to the ones being recognized by JIRA.

Using the JIRA wiki options is easy and works as explained. Getting the Environment details is easy via JS but how do I get it to save into JIRA as the Issue Collector does so we don't have to change the screen def to display it? I'm using /rest/api/2/issue/ endpoint, is there a different endpoint I should be using?

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

953 views 3 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