Question or two about using REST API to update JIRA issues

My company is using the REST API in JIRA to push incidents from our incident tracking software into JIRA for development to work. One issue we're running into is that if a field is not present on the edit screen, then the JIRA issue is not updated successfully (for instance, updates to the description and summary in our incident tracker don't make it to JIRA). Is this a known problem with any workarounds, or is there a better way to make those fields non-editable to our users in JIRA? These fields are values that come from the incident tracker and thus shouldn't need to be edited in JIRA by development.

A somewhat related question is that I am planning on using the JIRA Suite Utilities plugin to do some validation (presence) of field values and hide a couple workflow transitions. Will REST updates from our incident tracker go through this plugin, or does the plugin only operate on issues that are actually open and operated on within JIRA?

FYI, I'm not the person in charge of developing the integration, just the lucky QA person who is testing it.


1 answer

1 accepted

0 votes

It's not a "problem", it's by design. REST respects the configuration that the rest of the application follows. Otherwise, you're opening up a mess of contradictory and inconsistent behaviours which usually ends up in errors, or worse, a security breach.

If you want to do something with REST, you should enable Jira to do it on-screen.

That goes for the Jira suite utilities too - if you enforce validation using any of the functions it provides, they will apply to REST operations as well.

The approach I'd take here is priviliged users. Set up transitions in the workflow that use conditions like "only the integration user can do this". Remove the fields you want to protect from the edit screens, then put them on these protected transitions (they don't even have to change status). Then your REST developer will have to use "move issue through workflow, while logging in as the integration user".

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,139 views 13 19
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