Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,365,163
Community Members
 
Community Events
168
Community Groups

How to PUT versions with minorEdit?

Edited
James Pic I'm New Here Sep 07, 2022

Hi,

I've setup automated updates with sphinxcontrib-confluencebuilder and my users have been receiving like 600 notifications since yesterday.

I have enabled confluence_disable_notifications as described in the documentation:

Configuration — Sphinx Confluence Builder 1.9.0 documentation (sphinxcontrib-confluencebuilder.readthedocs.io)

But users are still receiving notifications, so I've debugged sphinxcontrib-confluencebuilder and did observe that it was sending minorEdit=True indeed.

So I've reproduced the problem in an isolated script:


current_version = client.get('https://wiki.local/rest/api/content/1455283518?expand=version').json()
print(current_version['version']['number'], current_version['version']['minorEdit'])
new_version = {
'version': {
'number': current_version['version']['number'] + 1,
'minorEdit': True,
},
'title': 'Does it work?',
'type': 'page',
'body': {
'storage': {
'value': '<p>test</p>',
'representation': 'storage',
}
}
}
update_response = client.put('https://wiki.local/rest/api/content/1455283518', json=new_version)
current_version = client.get('https://wiki.local/rest/api/content/1455283518?expand=version').json()
print(current_version['version']['number'], current_version['version']['minorEdit'])

Output:

1 False
2 False

So basically, I can't seem to put content with minorEdit=True.

I'm not the only user to face that, here's another:

Unfortunately, the Confluence Content API always seems to return false for the minor edit property, independently on how the flag has been specified when publishing. 

Add configuration parameter to publish changes via "Update" and not "Update & Notify" · Issue #277 · confluence-publisher/confluence-publisher (github.com)

Any clue please? I have extremely annoyed a ton of users !!!

Additionnaly, confluence still sends notifications when a new version is pushed with no change, which is definitively a bug.

1 answer

0 votes
James Pic I'm New Here Sep 08, 2022

Despite that the API always shows minorEdit: false, it seems that users are not receiving notifications anymore.

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events