Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Add attachment files when creating a card through REST API in JAVA


I have managed to create a card from my web application (in JAVA)

try (CloseableHttpClient httpClient = HttpClients.createDefault()) {

HttpPost post = new HttpPost("");

List<NameValuePair> urlParameters = new ArrayList<>();
urlParameters.add(new BasicNameValuePair("key", "#######"));
urlParameters.add(new BasicNameValuePair("token", "#######"));
urlParameters.add(new BasicNameValuePair("idList", "#######"));
urlParameters.add(new BasicNameValuePair("name", "my title"));
urlParameters.add(new BasicNameValuePair("desc", "my description"));
urlParameters.add(new BasicNameValuePair("due", "2020-08-01"));

post.setEntity(new UrlEncodedFormEntity(urlParameters, "UTF-8"));

try (CloseableHttpResponse response = httpClient.execute(post)) {
responseCode = response.getStatusLine().getStatusCode();


Do you have an example how can I attach also images in the card in JAVA?


1 answer

0 votes
Iain Dooley Community Leader Apr 30, 2020

@Yaylitzis I've never been able to make actual file uploads work, it seems that even natively file uploads are actually just represented as links. 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Trello

📹 What is Trello?

Hello Community!  My name is Brittany Joiner and I am a Trello enthusiast and Atlassian Community Leader. I'll be sharing with you a series of videos with my top tips on how to best use Trello...

814 views 13 30
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you