Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
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

Confiforms - How to use Dynamic Dropdown Webservice ?

Hello it's me again,

I'm trying to use ConfiForms' Dynamic Dropdown but it seems that I'm not using it correctly.
I need to fetch dynamically labels from JIRA API, but it doesn't seems to actualize himself and query the API while I tap in the field.

Here's the configuration of the field:

Name: subproject
Type: Dynamic Dropdown (auto-suggested) - Webservice
Service URL: /rest/api/2/jql/autocompletedata/suggestions?fieldName=Sub-Project(s)&fieldValue=[entry.subproject]
Root to use: results
Field to use as "ID": value
Field to use as "Label": value

The connection with JIRA works perfectly cause I'm already using it for others field, and even more, when I'm trying to use this field and replace by something static, I've the expect result of the query.

Can you help me, thanks
Kind Regards,

2 answers

1 accepted

1 vote
Answer accepted
Alex Medved _ConfiForms_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Nov 05, 2020

Have you enabled "as proxy" option for this field? See more on https://wiki.vertuna.com/display/CONFIFORMS/Using+use+proxy+setting+in+dynamic+dropdowns 

Hello, I tried but when I do so, I don't have suggestions no more.

Maybe it's related to this but I'm using an application link to Jira for the WebService

Okay it seems to work when I'm using custom authentification but not when using Application links on the webservice, is this a wanted behavior or a bug?

Alex Medved _ConfiForms_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Nov 06, 2020

Well, it's not a bug per se... With application inks we just use your account route the request through application link abstraction. And nothing else...

Are you sure this service is accessible when you access it through application link?

I think so because if I replace the Service URL:
/rest/api/2/jql/autocompletedata/suggestions?fieldName=Sub-Project(s)&fieldValue=[entry.subproject]
by:
/rest/api/2/jql/autocompletedata/suggestions?fieldName=Sub-Project(s)&fieldValue=test

I get every results that matches "test", but only when proxy disabled,

Alex Medved _ConfiForms_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Nov 06, 2020

I am sorry this really hard to debug remotely and via community posts. Feel free to open a ticket with us https://wiki.vertuna.com/x/S4GW

And provide server logs with enabled DEBUG for our plugin, so we can help you to investigate the issue and get it resolved

Duly noted, I'll do this when I'll have the chance.

Thanks

Hi @Alex Medved _ConfiForms_ ,

 

I'm trying to use the Dynamic Dropdown (Webservice) type for selecting components based on Project selected by the user.

Not able to having the dropdown populated for reason for the components, below are the configuration I'm using.

image.png

 

Service URL - https://xxx.com/rest/api/2/project/[entry.project]/components

image.png

 

image.png

 

image.png

 

I have also checked that the Service call is correct and i'm also using proxy. Project contains 1 component at the moment, which is not showing up. Please help!

Alex Medved _ConfiForms_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Feb 28, 2023 • edited

Hi

Sorry, but this is far from correct

Have a look at this demo page on this subject in our wiki: page https://wiki.vertuna.com/display/TEST/Building+a+dropdown+field+in+ConfiForms+backed+by+webservice+call+to+Jira+Rest+API+-+components+field

Service URL must be relevant, and must construct a complete URL TOGETHER with the "web-service connection" defined URL

Also, you are missing mappings - what field from the components response to map as ID and what to map as a label

Alex

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events