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,463,395
Community Members
 
Community Events
176
Community Groups

Populate JIRA issues Keys in a Confiform dropdown

Hii,

I would like to get all the issues from jira and show the keys in a dropdown in a confiform.

I wrote the jql and it works fine 

My confluence is already integrated with my JIRA server 

and I create a webservice in ConfiForms app configuration

but when I tried to use it in webservice dropdown field I got null json 

Any idea ?? do I need to enable some configuration ??   

1 answer

1 accepted

0 votes
Answer accepted

Hi

How is your field (webservice dropdown) is configured?

Do you have something like this

Screenshot 2021-04-13 at 16.33.11.png

Screenshot 2021-04-13 at 16.33.18.png

Assuming your connection is pointed at Jira server (root)

Alex

Hi Alex

I set up as the images 

issues and key

 

 

regards,

Abid

How about the JQL you use? Is it properly URL encoded?

If you put the same URL into the browser url - do you see the results?

MyJIRAServer/rest/api/2/search?jql=status%20in%20(open)&fields=key

 

exactly .. I got json result but it doesn't work within the field configuration 

But you have specified limit fields via

&fields=key

Of course it doe snot load fields!

As you ask it not to load anything but the "key"...

Alex

yes that's right, I only need a key to show it on the dropdown 

no need for the other fields 

And what is the mapping for "label" in your web service dropdown field?

I left it empty

Well, should not you put key there to show the key?

I understand that you dont want an empty label... 

I think the problem in the connection to jira server 

because when "See the service mapping" in the dropdown configuration I got [] 

an empty json ,so no data is loaded here.

Cannot tell about the connection itself... you need to check that yourself

And you need to put a mapping for "label" parameter as key

I did that but I got nothing.

Empty results (json array) means you have no results returned

So it is either the Jira permissions thing or incorrect (web service) connection

How is this configured? You can open support ticket directly with us  - so it will be more safe to share the config details

 

Alex

Hi Alex

As I said it was a connection error confluence server couldn't see JIRA server.

Now it's working fine.

 

 

Many Thanks,

Abid 

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events