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

Structure REST-API: Problem getting forest / values resources

Hi guys

I hope someone could help me out a bit..
Our CEO would like to have an automated "flat" export of our structures and issues in the structures.

I already managed to get the structures itself and the forest resources.
From the formula attribute of the forest-response I extracted the rowIds, itemstypes etc already.


Problem 1 - strange value:

One element in the formula field is irritating me a bit:

"5435:2:5//s.grouper.field.%2Bno-option:2"

For me that looks like an error...?

----

The main-structure contains several itemTypes:

"2""com.almworks.jira.structure:type-issuetype",        
"4""com.almworks.jira.structure:type-generator",        
"5""com.almworks.jira.structure:type-folder",        
"7""com.almworks.jira.structure:type-sprint",        
"12""com.almworks.jira.structure:type-project",        
"13""com.almworks.jira.structure:type-cf-option"


Problem 2 - Value-resource Repsonse not "complete"

If I now try to access "correct" (not the possible error above) value-resource with the following request:

Payload:

{"requests":    
[{
"attributes":
[{
"format":"text","id":"summary"},
{
"format":"text","id":"issuetype"},
{
"format":"text","id":"key"},
{
"format":"text","id":"assignee"}]    
,
"forestSpec":{"structureId":182},
"rows":[29060,29070,29290,4807]    }]}

- 29060 and 29070 are of itemType "folder"
- 29290 and 4807 are issues

If i check the resulting xml-file i the something alike this:

<data>
<attribute>    
<id>summary</id>
    
<format>text</format>
</attribute>
<values xmlns:xsi="http..." xmlns:xs="http..." xsi:type="xs:string">FolderA</values>
<values xmlns:xsi="http..." xmlns:xs="http..." xsi:type="xs:string">FolderB</values>
<values xmlns:xsi="http..." xmlns:xs="http..." xsi:type="xs:string">IssueSummary1</values>
<values xmlns:xsi="http..." xmlns:xs="http..." xsi:type="xs:string">IssueSummary2</values>
<trailMode>INDEPENDENT</trailMode>
</data>
<data>
<attribute>    
<id>issuetype</id>
    
<format>text</format>
</attribute>
<values xmlns:xsi="http..." xmlns:xs="http..." xsi:type="xs:string">Task</values>
<values xmlns:xsi="http..." xmlns:xs="http..." xsi:type="xs:string">Improvement</values>
<trailMode>INDEPENDENT</trailMode>
</data>

 

Is there a way that i get "empty" values for folders? like this I can't combine the result-values to a single row if I have not the same amount of records per "<data>" element...

Your help would be really appreciated.

Regards

Roman

 

 

1 answer

Hello Roman,

Sorry for such a delayed reply. Our support team has missed your post somehow. Do you still need assistance with this? If so, feel free to raise a support ticket in our support portal - https://support.almworks.com

Kind regards,

Daria

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

Staying organized with Jira: best practices for a better project management

Project managers know this problem: A “mountain of work” lays in front of you, and you don’t know how and where to tackle them. Different to-dos lie ahead, but just one task after the other can be ha...

360 views 2 1
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