Issue Details (XML | Word | Printable)

Key: JRA-6857
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Mark Chaimungkalanont [Atlassian]
Reporter: Sebastian J
Votes: 0
Watchers: 3
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
JIRA

Soap: getCustomFields()

Created: 01/Jun/05 01:04 PM   Updated: 09/Jul/07 05:33 PM
Component/s: Remote API (SOAP & XML-RPC)
Affects Version/s: 3.2
Fix Version/s: 3.2.1

Time Tracking:
Not Specified

Environment:
.NET
Jira Pro 3.2

Participants: Anton Mazkovoi [Atlassian], Ben Herfurth, Mark Chaimungkalanont [Atlassian], Matthew Boehm, Sebastian J and Yuen-Chi Lian [Atlassian]
Since last comment: 1 year, 21 weeks, 1 day ago
Resolution Date: 06/Jun/05 02:59 AM
Labels:


 Description  « Hide
I'm using soap to populate Jira. Working with custom fields is difficult because you have to dig out the custom field ID from deep in the administration of Jira. Since the Soap API already has methods such as getPriorities and getIssueTypes, it would make sense to have a similar method such as:

getCustomFields(token, projKey)

which would return an array of the existing custom fields. I would like to suggest this feature.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Anton Mazkovoi [Atlassian] added a comment - 02/Jun/05 02:07 AM
Thank you for the suggestion. We will definitely keep it in mind.

Ben Herfurth added a comment - 01/Aug/06 02:24 AM
hello,

this operation is available now, as I can see from the Java API. but it is only callable by an administrator? why this? normal users also need to be able to call this method, if they want to create an issue.

regards,

Ben


Yuen-Chi Lian [Atlassian] added a comment - 02/Aug/06 12:36 AM
Hello Ben,

The getCustomFields() method is one of the general admin methods. Use getFieldsForEdit(token, key) if you want to retrieve the list of available fields.

While creating an issue, you specify the value of the custom fields by setting the customFieldValues element, e.g. in Python:

soap.createIssue(auth, {'project': 'TPJ', 'type': '1', 'summary': 'Issue created via Python :)', 'assignee': 'admin', 'customFieldValues': [{'customfieldId': 'customfield_10000', 'values': ['foobar']}]})

Please refer to the WSDL, i.e. /rpc/soap/jirasoapservice-v2?wsdl for the structure of RemoteIssue and RemoteCustomFieldValue.


Cheers,
Yuen-Chi Lian

"I do not seek. I find." - Pablo Picasso


Ben Herfurth added a comment - 02/Aug/06 01:07 AM
creating an issue with custom fields was never a problem for me but before i had to seek the integer codes for the dropdownmenu values

Matthew Boehm added a comment - 09/Jul/07 05:33 PM
Why is getCustomFields() an admin method? I'm trying to create my own 'create new issue' page and need to be able, as a normal user, to get all the custom fields. How can I use getFieldsForEdit() if I haven't created a new ticket yet?

Why is it that as a normal user, I can do getStatueses() but can't do getCustomFields() ? Makes no sense to us here.