Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

How to retrieve structure calculated fields using REST via CURL

I am calling the REST API for structure from a CURL based application.  I can get the forest and decode the references(formula), but when I want to retrieve values I am hitting a dead-end.

 

The /value POST method allows the specification of the id and type to be returned, the examples work fine, but I cannot figure how to retrieve a custom/calculated field.  I tried customfield_nnnnnn or just the number or even the display name, but all just return zero.

 

The documentation mentions this in the JAVA section, but not for regular REST

 

Is it possible?

1 answer

Hello Colin,

Since we don't know all the details of what you're trying to achieve to recommend anything certain, here are some tips that can be useful:

- The value method works only in Structure versions 5.6.4 and older. If you have Structure 6.0+ you need to use the attribute subscription method. You can learn more about it in our documentation: https://wiki.almworks.com/display/structure/Attribute+Subscription+Resource
- A request for retrieving a custom field values itself should look like this: {"id":"customfield","params":{"fieldId":XXXXXX},"format":"text"} 

so you only need to change the fieldId numbers to appropriate digits of your custom field's id.

I hope this helps. If you need further assistance with this, please feel free to contact us directly at support.almworks.com and we'll get back to you shortly.

Best regards,
Stepan Kholodov
ALM Works

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket Pipelines

Bitbucket Pipelines Runners is now in open beta

We are excited to announce the open beta program for self-hosted runners. Bitbucket Pipelines Runners is available to everyone. Please try it and let us know your feedback. If you have any issue...

256 views 5 4
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