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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

494 views 6 11
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