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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,554,294
Community Members
 
Community Events
184
Community Groups

How to fetch all the option keys of an Elements Connect field?

Anil Peres-da-Silva
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Apr 18, 2023

A customer is using Elements Connect.

{"id":"customfield_16528","name":"Entrega","custom":true,"orderable":true,"navigable":true,"searchable":true,"clauseNames":["cf[16528]","Entrega"],"schema":{"type":"array","items":"string","custom":"com.valiantys.jira.plugins.SQLFeed:nfeed-standard-customfield-type","customId":16528}}

autocompletedata returns no results against their jira server

/rest/api/latest/jql/autocompletedata/suggestions?fieldName=customfield_16528
GET:{"results":[]}

project queries return the id, not the display name

https://{sever}/rest/api/latest/search?startAt=0&maxResults=1000&jql=(project=PTI3441+and+issuetype="Story")&fields=customfield_16528,updated,id

{"expand":"names,schema","startAt":0,"maxResults":1000,"total":1,"issues":[{"expand":"operations,versionedRepresentations,editmeta,changelog,renderedFields","id":"769872","self":http://{server}/rest/api/latest/issue/769872,"key":"PTI3441-2","fields":{"updated":"2023-04-18T15:07:44.000-0300","customfield_16528":["865596"]}}]}

 

Is there a public REST api to query the IDs and Display Names? 

so that I can write a program to transform the one into the other?

Appreciate it & Thank you

Anil Peres-da-Silva

2 answers

0 votes
Anil Peres-da-Silva
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 26, 2023

Hi Laura, 

I have not. Thank you.

I did find additional Elements Connect documentation though, which indicated that the expected behavior of Elements Connect is to return the ID in fields, and to return the displayvalue in renderedFields.

We tested that and found it to be true, so we've adopted this later approach.

To be honest, I'm not thrilled about it.

The solution now costs more in time, traffic and memory.

But at least we have a solution.

Again, thank you.

anil

Hi @Anil Peres-da-Silva

[...] so we've adopted this later approach.

I'm glad to know you found the solution.

 

The solution now costs more in time, traffic and memory.

I understand your disappointment. Unfortunately, this behavior is quite normal actually.

Indeed, when you only retrieve the IDs, data comes from Jira, because IDs are stored in the Jira database. Response times are therefore optimal.

When you retrieve the Display Values, data comes from your datasources, because Display Values are not stored in Jira, they are dynamically retrieved. That's why the query is longer and more resource consuming. Path to find the data is different.

May I know if the cache is enabled in your Elements Connect fields? That could be a way to reduce the impact.

Please don't hesitate to contact us here: https://support.elements-apps.com

Our team will be pleased to help you checking your configuration and see what could be done.

Have a nice day.

Kind regards,

0 votes
Laura Campbell _Elements_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 16, 2023

Hello @Anil Peres-da-Silva and welcome to Community!

I'm sorry to see you didn't get an answer for your question about Elements Connect. Have you contacted the Elements Support team?

Suggest an answer

Log in or Sign up to answer