It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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
Answer accepted

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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published Thursday in Confluence

Confluence CVEs and common questions

Two vulnerabilities have been published for Confluence Server and Data Center recently: March 20, 2019 CVE-2019-3395 / CVE-2019-3396 April 17, 2019 CVE-2019-3398 The goal of this article is...

111 views 0 10
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