The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
According to https://help.trello.com/article/1203-issuing-http-requests-with-butler we can fetch a resource. Is there a way to fetch the last element of an array? Say we have this:
data = [
{
field: 1
},
{
field: 2
}
]
and I want to fetch the last element (field: 2), is there a way without hardcoding the index? Something like
{httpresponse.data[-1].field}
Hey @gustavo_diel
Currently, fetching an array value like that is not possible, but I have let the team know about your interest in that.
For now, only index and "dot" field access is supported. Let me know if you have any more questions.
Congratulations to @Laura Holton , our latest winner of Taco Tuesday! And thanks to @Kristján Geir Mathiesen for sharing the picture of Taco having fun with his new friend B...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.