Hello, I am creating a Jira Connect app that involves me creating an issue via the v2 API. When trying to create an epic, I get the error that the epic name must be set. However it turns out that the epic name field is an arbitrary custom field that is different on every environment.
I can hard code the custom field to get it to work (10011 for me), but I need to be able to do this programmatically so that it works for anyone. Is there a way to use a static key to set the epic name field? If not, how do I get the custom field id for the epic name?
The epic field name is 100% unnecessary for my uses as it will just be a duplicate of the summary field. So if there is a way to skip setting this field that would be optimal.
There is a frustratingly lack of information about this interaction in the docs
You must not use field id hard coded, you must get the field object by name first:
customFieldManager.getCustomFieldObjectByName("custom-field-name");
Thank you for the response. How would this be done using the REST api. i am creating a Jira epic from a 3rd party app so I do not have access to these methods
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
https://yourserver.atlassian.net/rest/api/2/field
Parse the result, find 'epic name' in there. (Not sure how it works in non-English environments, sorry)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Daniel. This really is a helpful answer and solved lot of trouble for me
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.