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

Developing Confluence Macro that reads JIRA issues

Hi Guys,

I am new to Confluence and i have been assigned to develop a custom macro  that fetches JIRA issues from Confluence, process a customfield on these issues and create a graph in a Confluence page. So far i have set up the JIRA and Confluence on my localsystem, linked them together and developed a macro that creates a graph(with some dummy values). 

I tried to fetch the the JIRA issues using the api , but it was giving me a http400 bad request. I am not sure if its because of the authentication problem(since i was getting the same error message in postman, but worked in browser when i was logged in).  Is it because of authentication problem? or my approach does not work?

Thank You

1 answer

By linked them together you mean an application link? You are right, it probably is an authentication problem because there's probably no information in your requests that would allow Jira to identify that the request is in fact coming from your Confluence. In the browser it works because the user is authenticated.

Since your instances are already linked you should take a look at the Application Link Java API which provides a way to make authenticated requests. There are some threads about how to use this API on the Atlassian Developer Community.

In general you should post app development related questions to the Atlassian Developer Community. :)

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Confluence

What do you think is the most *delightful* Confluence feature? Comment for a prize!

- Create your own custom emoji 🔥 - "Shake for Feedback" on mobile 📱 - An endless supply of GIFs via GIPHY 🤩 Is there anything quite as nice as a pleasant surprise? Comment below with what...

462 views 24 9
Join discussion

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