KCF-Pro JIRA Rest API example

I'm attempting to create an issue in JIRA through the REST API that has a KCF - Pro custom field on it. It's a KCF - Autocomplete Multiple issue picker.

 

I'm having trouble figuring out what JSON is expected. I have {"update":{"customfield_10812":[{"set": ... }]}} but I don't know what goes in the ... area.

 

Are there any examples of this anywhere?

 

This is the custom field meta data from the issue type:

Key: customfield_10812, {"required":true,"schema":{"type":"array","items":"string","custom":"com.keplerrominfo.jira.plugins.keplercf-pro:sil-options-cf","customId":10812},"name":"Builds","hasDefaultValue":false,"operations":["set"]}

2 answers

1 accepted

3 votes
Accepted answer

Hi Andrew,

Unfortunately, at this moment, you cannot populate a KCF Pro via Rest API. This is an improvement already existing in our backlog, so we plan to implement it.

 

Alexandra

Thank you for the quick response! Is the backlog visible anywhere?

The backlog is not visible, it is on our internal JIRA, but we'll inform you when the feature will be added. :)

I vote for this :-). We will use it when it will be available.

Is this issue already solved ? 

Well, I dont know if it's resolved. Maybe this will help. It's working version for KCF - Single Autocomplete custom field:

pickedUser = "{label='" + userLogin + "', value='" + userLogin + "'}"

And then in jsonbuilder:

customfield_10573         : pickedUser,

I found in database what should I write in string. So probably if you will search a table containing the custom field values, you will know how to prepare the json builder.

 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published yesterday in Agile

Are you a Jira Service Desk agent? We want to talk to you!

Are you a whiz at handling tickets and looking at how you can further optimize your workflow with automation? Do you tackle detailed customer support questions while simultaneously getting flooded wi...

31 views 0 2
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you