Skip to content

Commit c5f558a

Browse files
authored
Added doc string
1 parent b73a5a1 commit c5f558a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

atlassian/jira.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,13 @@ def get_custom_fields(self, search=None, start=1, limit=50):
579579
return self.get(url, params=params)
580580

581581
def create_custom_field(self, name, type, search_key=None, description=None):
582+
"""
583+
Creates a custom field with the given name and type
584+
:param name: str
585+
:param type: str, like 'com.atlassian.jira.plugin.system.customfieldtypes:textfield'
586+
:param search_key: str, like above
587+
:param description: str
588+
"""
582589
url = 'rest/api/2/field'
583590
data = {'name': name, 'type': type}
584591
if search_key:

0 commit comments

Comments
 (0)