Questions tagged [confluence-rest-api]

The Confluence REST API is provided for developers who want to integrate with or build on top of the Atlassian Confluence platform and administrators who want to script interactions with the Confluence server

273 questions
0
votes
1 answer

Unable to update confluence page with content from an HTML file using curl

I am trying to update a Confluence page with some HTML content. I have this HTML content in a different file named Output.html in the same location. I cannot directly copy & paste that HTML content to this script, as it is a huge amount of data, and…
Ashfaq
  • 1,137
  • 1
  • 12
  • 22
0
votes
2 answers

Upload Confluence page content containing {code} macros through API

What I'm trying to achieve is to upload a Confluence page content that contains code examples, and I'd like these code examples to use the {code} macro plugin that provides syntax highlighting when viewing the page. I've found that the code macro…
Guillaume S.
  • 272
  • 1
  • 3
  • 13
0
votes
0 answers

Confluence Macro Plugin properties

I created a plugin (Java) that have the following snippet: String username = "abcdef"; String passowrd = "somepass"; String userName = URLEncoder.encode(username, "UTF-8"); String password =…
Mustafa
  • 63
  • 6
0
votes
0 answers

Empty PDF on REST API POST

I'm attempting to upload a (non-empty) PDF to Confluence using the Atlassian REST API (in Java). The issue I am having is that the PDF that ends up being uploaded has no content, but is exactly the same file size as the original PDF document! Here…
Adam
  • 63
  • 3
  • 13
0
votes
2 answers

TeamCity filter builds by tags or time period

Is it possible, through the rest API, to request all the builds with a specific tag? Along the same lines, can I get all the builds from a specific time period? For example, request the builds from 7 am to 7 pm of a specific date? Background, I am…
fractalflame
  • 1,011
  • 1
  • 9
  • 20
0
votes
1 answer

Why Kafka REST proxy running on port 443 warns about Illegal character 0x16?

I modified config of kafka.rest.properties by setting listeners=http://0.0.0.0:443. Now on executing sudo bin/kafka-rest-start ./etc/kafka-rest/kafka-rest.properties I am getting this error repeatedly [2017-02-01 07:31:43,727] WARN Illegal…
Prabhat
  • 127
  • 1
  • 13
0
votes
2 answers

python post request throws UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0'

I've python code that reads a page data from Confluence using the REST API and then using that data creates a new page in Confluence. While posting the data, the code throws the below error: UnicodeEncodeError: 'ascii' codec can't encode character…
0
votes
2 answers

How to turn curl request with user and password into ruby NET::HTTP for https site?

I have a ruby script that I'm using to get info from a web page and update the page. I am getting some json info from the web page with: `curl -s -u #{username}:#{password} #{HTTPS_PAGE_URL}` And then I am updating the page with: `curl -s -u…
Alex Cohen
  • 5,596
  • 16
  • 54
  • 104
0
votes
1 answer

ASP.NET Webpage with link to Confluence Wiki using Windows login credentials

I've been tasked with seeing if we can give users of our internal web application help links to documentation pages on our company's Confluence Wiki. But here's the problem, the requirement is that users should not have to log into Confluence…
0
votes
2 answers

Can a plugin be disbaled for certain confluence spaces with a properties file?

I am currently trying to build a plugin for Confluence and I am wondering wether it is possible to have my plugin be disabled for certain spaces inside confluence. For clearing things up: I have A, B, C, D as Confluence spaces. Inside Spaces A and…
0
votes
2 answers

How to attach files to Atlassian Confluence page using PHP

I'm working on attaching files via PHP to confluence (version 5.9.10) Here is my code $ch=curl_init(); $headers = array( 'X-Atlassian-Token: no-check' ); $data = array('file' => '@test.txt'); curl_setopt_array( $ch, array( …
0
votes
3 answers

Confluence REST API Update a Page

This is my code to update an existing page. The Variables in the JSON aren't the problem, because I can create a page with this JSON without any problems. string json = "{\"type\":\"page\",\"title\":\"" + "Tabelle " + table.Name +…
F. Baum
  • 301
  • 1
  • 5
  • 17
0
votes
1 answer

Understanding available Vaadin 7 Widgets/addons 'GWT'

From my understanding Vaadin consumes GWT and adds an engine on the browser end to interact with server side UI. In looking for a 'Confluence' Vaadin add on I came up with nothing. I would like to use Javascript instead of Vaadin pure Java to talk…
spring_hiber
  • 109
  • 1
  • 2
  • 12
0
votes
1 answer

Extract data from metadata list macro from Confluence's REST API

I'm trying to fetch the value of an item in a metadata list on a page in Confluence using the REST API. So far I have been able to extract fetch the body using a URL like this https://acme.com/rest/api/content/105088446?expand=body.storage…
Craig
  • 8,093
  • 8
  • 42
  • 74
0
votes
1 answer

Maven: Include 3rd party jar with bundled libraries that conflict with other dependencies

I've been looking for the answer to this for a few days and have turned up empty. I'm devving a Confluence plugin that integrates with a 3rd party app. This 3rd party app has a nice REST API and they even provide a Java SDK (yay!). Except.....the…
SpaDusA
  • 324
  • 4
  • 14