How can I add history entry using REST API without modifying issue?

I'm trying to explore adding custom history entry using REST Browser and I'm missing a few details:

  • How can I just add a history entry without modifying issue? (I get the error saying "update" or "fields" is required)
  • What is the "type"?
  • What is the difference between "description" and "activityDescription"?
  • Is it enough to put "id" of the "actor" or I need to generate/fetch all the other properties?
  • How do I know what should be put in "generator", "cause", "extraData"?

To add more context I'm developing a plugin for JIRA cloud and I'd like to add history entries for changes that are not persisted in JIRA but are strictly related to JIRA issues.

For the sake of experiment I'm updating "description" and I get a 204 back from the server with "null" response body. The description changes, all the other information I'm putting in the "historyMetadata" do not show in the "Activity" widget on the Issue details screen.

Any hint will be greatly appreciated.

2 answers

Curious. What specific changes are you trying to put in the history?

Hi, the simplest answer would be that I'm storing some information in issue properties and changing them currently does not add any entry in the issue history. That's what I would like to work around and also be able to specify custom message in the history along with this change.

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

21,952 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