Are/is there any examples of setting customfield values for a customfield with a tick box setup.
I am able to do -
datadict = {}
datadict['project'] = project
datadict['summary'] = summary
datadict['description'] = description
datadict['issuetype'] = {'name':'Operations Change'}
datadict['duedate'] = date
datadict['labels'] = labelsdatadict['customfield_10263'] = {'value':platform}
datadict['customfield_10262'] = {'value':'Reference Data'}
datadict['customfield_10261'] = how
session.create_issue(fields=datadict)
But I want to add to a customfield with a tickbox and I can see
Field: customfield_10346 Value: [{'self': 'https://aquis.atlassian.net/rest/api/2/customFieldOption/10544', 'value': 'Prod', 'id': '10544'}, {'self': 'https://aquis.atlassian.net/rest/api/2/customFieldOption/10545', 'value': 'Test', 'id': '10545'}]
so do I need to know the customFieldOption ids for all those options.
would the correct approach to be to build up a list of values for values I need
ids = { 'Prod':'10544,'Test':'10545'] etc
and the build the list to look something like below?
datadict['customfield_10346'] =[ {'self': 'https://aquis.atlassian.net/rest/api/2/customFieldOption/10544', 'value': 'Prod', 'id': '10544'}, {'self': 'https://aquis.atlassian.net/rest/api/2/customFieldOption/10545', 'value': 'Test', 'id': '10545'}]
Any pointers appreciated.