Good day
I keep getting in my response 'The custom field was not found'
Not sure what I am missing?
And yes I did check and made sure the custom field is in Jira and that the ID matches
`/secure/admin/EditCustomField!default.jspa?id=CUSTOMFIELDID`
const res = await axios.get(`${jiraBaseUrl}/field/${customFieldId}/context`, {
headers: {
Authorization: `Basic ${auth}`,
Accept: "application/json",
},
});
I do have a request that fetches my ticket, and that works 100%, it is just this endpoint giving me issues for some reason
Solved the issue, the CustomFieldId should be `customfield_ID` and not just the id, which is subtracted from `customfield_ID`, wish the documentation could be clear on that :)
const response = await api.asUser().requestJira(route`/rest/api/3/field/{fieldId}/context`,
{
headers: { 'Accept': 'application/json' }
});
Welcome to the community @Dirk !
Have you tried using this endpoint: /rest/api/3/field/{fieldId}/context?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Nikola Perisic ,
Jip that is the endpoint I am using, the `jiraBaseUrl` is just a variable I am using
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.