Solved

How can I retrieve a StatementField phasefield value

  • 1 May 2023
  • 3 replies
  • 140 views

Userlevel 2
Badge

I've found that answer about retrieving phase field values:

 

Unfortunately, it seems that StatementFields are not included in the in the normal fields list of a card. How can I retrieve the value of a StatementField?

icon

Best answer by diogo.pessoa 2 May 2023, 19:59

View original

3 replies

Userlevel 7
Badge +15

Unfortunately, it is not possible to get the comments data via API. Alternatively, you can create a text field where users can enter their comments. The risk of this field's existence is that it is editable.

Userlevel 4

Hello Karoline,

StatementField does not have content in them, they are just references to other fields, you can see the reference of those fields by the description, as I show below:

 

 

The query to bring up those info is:

 

{
card(id: "666341506") {
id
title
pipe {
id
name
}
fields {
field {
id
description
}
}
current_phase {
fields {
index_name
index
id
label
description
internal_id
type
options
custom_validation
help
phase {
name
}
}
}
}
}

 

Userlevel 7
Badge +15

I'm sorry I confused the concept of statemant with comment.

But as mentioned in the previous comment, the Statement is a field with fixed content.

Typically, the Statement ID is the content itself.

This changes if the Statement changes.

Reply