Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 1st, 2012  |  syntax: None  |  size: 1.42 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Update custom cascading select field in JIRA via suds
  2. issue = client.service.getIssue(auth, "NAHLP-33515")
  3. for f in fields:
  4.     if f['customfieldId'] == 'customfield_10050' or f['customfieldId'] == 'customfield_10050_1':
  5.         print f
  6.        
  7. (RemoteCustomFieldValue){
  8.    customfieldId = "customfield_10050"
  9.    key = None
  10.    values[] =
  11.       "10981",
  12.  }
  13.        
  14. (RemoteCustomFieldValue){
  15.    customfieldId = "customfield_10050"
  16.    key = None
  17.    values[] =
  18.       "10981",
  19.  }
  20. (RemoteCustomFieldValue){
  21.    customfieldId = "customfield_10050"
  22.    key = "1"
  23.    values[] =
  24.       "11560",
  25.  }
  26.        
  27. client.service.updateIssue(auth, "NAHLP-33515", [
  28.                            {"id":"customfield_10050", "values":["10981"]},
  29.                            {"id":"customfield_10050_1", "key":"1", "values":["11560"]}
  30.                            ])
  31.        
  32. suds.TypeNotFound: Type not found: 'key'
  33.        
  34. client.service.updateIssue(auth, "NAHLP-33515", [
  35.                            {"id":"customfield_10050", "values":["10981"]},
  36.                            {"id":"customfield_10050_1", "values":["11560"]}
  37.                            ])`
  38.        
  39. (RemoteCustomFieldValue){
  40.    customfieldId = "customfield_10050"
  41.    key = None
  42.    values[] =
  43.       "10981",
  44.  }
  45.        
  46. client.service.updateIssue(auth, "NAHLP-33515", [
  47.                            {"id":"customfield_10050", "values":["10981"]},
  48.                            {"id":"customfield_10050:1", "values":["11560"]}
  49.                            ])