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

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

Why can't I bring Jira field to confluence table?

Edited

I've created a table view in Confluence that displays fields as submitted via confiforms entries, including the Jira ID # that feeds back to the confiform entry at submission.   I wanted to bring the Jira Issue Status field into this field view as a separate field so I followed the following steps from vertuna:

"We add ConfiForms Field macros to the TableView and set the field names parameters like this:  myJiraIssue.fields.status.name".

This worked and I now have a separate field that I can export that lists status.   I want to do the same thing for another field labelled as "Sprint" (official name is customfield_15) and am unable to get it to work trying:

  • myJiraIssue.fields.sprint.name
  • myJiraIssue.fields.customfield_15.name

 

Has anyone run into a problem like this?

Appreciate any help / guidance!



1 answer

1 accepted

What you need to know is exact name of the field and the structure Jira uses to return it's value when requested via REST API call

I am pretty sure the field name is not "customfield_15", as custom fields have a much larger numbers...

Try to do a request in the browser to

https://_your_jira_/rest/api/latest/issue/_issuekey_

Changing _your_jira_ and _issuekey_ respectfully, and see what field returns information about the sprint and what is the structure

Alex

You're right, it's customfield_10005.    I don't have global admin rights to my Jira server, just local project admin rights.   

Here is the field in xml:

<customfield id="customfield_10005" key="com.pyxis.greenhopper.jira:gh-sprint">

 

Does this help describe the issue better?  

Thanks!

Not quite. I have no idea myself how to get such xml

Have you tried to do a request as I mentioned in the browser?

(you don’t need any extra permissions)

find in that response your custom field and share its structure 

Unfortunately I get an error or redirected back to the main project page when I try to change the url.  

The URL you should craft should be almost the same as the one you see when you browse the issue - at least it's server part

https://_your_jira_/

Feel free to open support issue and provide the URL you see in the browser when viewing the issue in Jira and I will construct the URL fro you that does the same but returns a JSON (RESt API call)

Alex

Suggest an answer

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

Confluence Mythbusters: Does Atlassian even use Confluence?

Hi, Confluence collaborators! As part of #Confluence-Collaboratory month, we’ve created a very special Mythsbusters segment, where we're dive into an interesting myth and uncover the truth behind i...

1,550 views 7 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