I'm afraid "issue key based on input as customised field value" does not make any sense.
The use of Postman suggests you're using the REST API, but it's not clear what you actually want to do. Please explain?
Hi Brough,
I have an requirement where all issue keys has been with unique customized field values.
But I need the issue key number based on the unique customized filed value as input.
Am using REST API thru post man to get the issue key value.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm afraid you have simply repeated the question in much the same way, and it is not clear from that what you are looking for.
Let us forget REST for a second, could you explain what you would do as a user in Jira to do this? What would you go to and enter?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have list of 10 issue Keys Lets say from 1-10
Each issue key is having one customized field contains unique number.
My Question is
I know the Unique number but not the corresponding issue key
How can i get the issue key based on Customized field unique number through REST API
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ah, I see, thank you!
Use the search - https://developers.atlassian.com/jiradev/jira-apis/jira-rest-apis/jira-rest-api-tutorials/jira-rest-api-example-query-issues
You should be able to build a query for "customfield_x ~ your key"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I tried with
https://xxxxxxxxx/rest/api/2/search?jql=customfield_14830=xxxxxxx
But got response as
{
"errorMessages": [
"Field 'customfield_14803' does not exist or you do not have permission to view it."
],
"errors": {}
}
But customfield_14803 is exists
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Your error message does not match what you're posting - check the custom field number again!
Also check you are logging in ok - try to fetch a whole issue and see if that says you can see it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What about using the right REST call?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am sorry, but you are missing the point. Please re-read the numbers in the url and the error message you gave earlier. They are different, so it looks like you are giving us an edited response from an incorrect url, or an edited url with a different response.
Try the right url and give us the actual error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry in url custom field number was wrong but i tried with proper numbers but facing same error
https://xxxxxxxxx/rest/api/2/search?jql=customfield_14803=xxxxxxx
{
"errorMessages": [
"Field 'customfield_14803' does not exist or you do not have permission to view it."
],
"errors": {}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hmm. Could you try replacing customfield_14803 with cf[14803] ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Brough
Great.
Its working ... :)
Thanks for the help...
Appreciate your support...
Its worked for below
https://xxxxxxxxxxx/rest/api/2/search?jql=cf[14803]="xxxxxxxxxx"&maxResults=2&fields=id,key'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bough,
Am not facing any issue in version
But its throwing below error for the version
"The operator '=' is not supported by the 'cf[14803]' field."
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Does this solution still work with the latest version? I get a 400 response code for the customize field url
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.