如何使用C#从JIRA检索自定义字段值?

如何使用C#从JIRA检索自定义字段值?,c#,jira,C#,Jira,在名为“地点”的自定义字段中存在一些默认值,其中包含伦敦、巴黎等。。如何从C#中的JIRA SOAP API中检索这些(伦敦、巴黎)。JIRA-JIRA 4.0和C#-.net framework 4.0。如果未设置SOAP API,则可以使用。Python代码示例(可以更改为C#): 我认为JIRA4.0SOAPAPI中没有自定义字段的默认值。也许是在JIRA 5.x REST API中?我使用XML-RPCHi添加了一些代码(python,尽管翻译成C并不困难),如果这有帮助,请:) #!/

在名为“地点”的自定义字段中存在一些默认值,其中包含伦敦、巴黎等。。如何从C#中的JIRA SOAP API中检索这些(伦敦、巴黎)。JIRA-JIRA 4.0和C#-.net framework 4.0。

如果未设置SOAP API,则可以使用。Python代码示例(可以更改为C#):


我认为JIRA4.0SOAPAPI中没有自定义字段的默认值。也许是在JIRA 5.x REST API中?我使用
XML-RPC
Hi添加了一些代码(python,尽管翻译成C并不困难),如果这有帮助,请:)
#!/usr/bin/python

# Refer to the XML-RPC Javadoc to see what calls are available:
# http://docs.atlassian.com/software/jira/docs/api/rpc-jira-plugin/latest/com/atlassian/jira/rpc/xmlrpc/XmlRpcService.html

import xmlrpclib

# Jira connction info
#server = 'http://212.29.248.203:8080/rpc/xmlrpc'
server = 'https://your.jira.com/rpc/xmlrpc'
user = 'user'
password = 'password'
filter = '10302'
customfieldID = "customfield_10417"

s = xmlrpclib.ServerProxy(server)
auth = s.jira1.login(user, password)

# get list of issues
issues = s.jira1.getIssuesFromFilter(auth, filter)
for issue in issues:
        # get open since time
        for customFields in issue['customFieldValues']:
                if customFields['customfieldId'] == customfieldID :
                        print "found field!"+  customFields['values']