Hi,
I can retrieve custom fields using the CustomFieldManager, and I can get the list of used issue types using the CustomField.getAssociatedIssueTypes() method.
But how can I *add* an IssueType to a CustomField ? I guess I need some form of persistence, but how ? Can anyone point me to existing articles/documentation?
thanks.
Hello @[deleted]
You can't just add an single issueTYpe to an custom field configuration, you have to add an "context" which contains list of projects/issueTYpes mapped to that custom field.
Please see some samples (using script runner - groovy)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Tarun, I think the link you mentioned and a cursory inspection of the CopyProject.groovy from Jamie gave me the info I needed.
I still find this part of the API usage rather obscure and would welcome if Atlassian would spend more effort in shedding some light upon it.
thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.