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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • 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

Custom macro - start and end date of the issue to be displayed on a Confluence page

Hi everbody, 

we want to display start and end date of a project on a Confluence page (while this data is all in Jira). 

  • Does anyone use it like this?
  • We got a recommendation to build a custom macro with Scriptrunner, but since I am new to programming, should someone help me with the code block?

Thanks a lot!

Best, Anna

 

Here is what the support of Scriptrunner recommended:

I believe the best path forward would be to create a Custom Macro that interacts with the Jira API, specifically the Get Issue Endpoint, to retrieve your desired Jira issue properties and the present this information within a table, which you can create following the example here

1 answer

1 accepted

0 votes
Answer accepted

If you simply want to display some fields from an issue in Jira in a tabular format you should use the Jira macro. You supply the macro a JQL query or filter and then tell it what fields you want to display in the resulting table.

Hi Davin, 

thanks to your proposal!

Start and end date of an issue are in our case custom fields. So I dont see any possibility right now to display custom fields in Confluence. Or do you know how to do it?

As far as I can see, there are available colums: key, summary, issue type, created, updated, due date, assignee, reporter, priority, status, resolution --> please compare the screenshot.

 

Thanks in advance!

Best, 

screenshot columns in confluence.pngAnna

Here is for example the filter I created "Start Date" is not EMPTY AND "End Date" is not EMPTY AND issue = TS-507

Davin Studer Community Leader Sep 08, 2020

The columns to display initially shows some pre-populated fields but you can change it. The "x" next to each field will remove it and if you place your cursor  at the end of the list and click you can add fields ... even custom fields.

Thanks a lot David! This I did not know. You are awesome!

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

Announcing Team Calendars in Confluence Data Center

Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond.  A long time favorite,  Team Cale...

59 views 0 3
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