Create custom field in jira cloud add-on programatically

Hari Prasath P February 2, 2018

Hi,

I wan't to create a custom field in Jira cloud add-on. So, I referred to this documentation and made my code as below,

AP.require(['request'], function (request) {
request({
url: "https://radiantq.atlassian.net/rest/api/2/field",
method: 'POST',
contentType: 'application/json',
data: '{"name": "New custom field","description": "Custom field for picking groups","type": "com.atlassian.jira.plugin.system.customfieldtypes:grouppicker","searcherKey": "com.atlassian.jira.plugin.system.customfieldtypes:grouppickersearcher","update":{}}',
success: function (response) {
debugger;
},
error: function () {
debugger;
alert("fail");
}
});
});

have added ADMIN to app scopes also. But still, could not find exact way to create custom filed. Is there any other process to be done?

0 answers

Suggest an answer

Log in or Sign up to answer