Hello, I want to create a task inside an epic using postman, I manage to create the task, but it remains without being inside an epic.
Thanks for the help.
Welcome to the community!
If I understand you correctly, you want to specify another ticket as 'Epic Link' to this task that you are creating. That way, when you go to that epic ticket you will see this task as well under 'Issues in epic'.
Can you try providing the Epic ticket number instead of the Epic name here like:
"customfield_10000" : "EPIC-12345",
And try?
Hope this helps.
Thanks,
Vamsi
Hi,
It doesn't matter what you put in the customfield_10000, the task is created, but never inside the epic
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have tested it out at my end and it worked well.
Did you ensure that the ticket you provided for 'customfield_10000' is of 'Epic' issue type?
I replaced your code with the following:
{
"fields": {
"project":
{
"key":"TEST"
},
"summary": "Jira summary",
"description":"text of description",
"customfield_10000" : "EPIC-12345",
"issuetype":
{
"name":"Task"
}
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How did you determine that 10000 is the correct ID for the Epic Link field?
You can find the field ID by going to the Settings > Issues > Custom Fields screen. Search for the field. Click on the ... to the right of the field. Hover over one of the options in the context menu. The URL for the option will show at the bottom of the browser screen and will include the ID for the field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for your response.
I verified the custom field id for 'Epic' issue type in the Jira Cloud instance and created the ticket via Postman.
Regards,
Vamsi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
@Trudy Claspill I have checked the fields as you have indicated.
Epic Name: 10011
Epic Link: 10014
@Vamsi Kandala I have tried with the two customfields, putting the name "myepic" or the number "TEST-25", but postman does not return anything, I attach capture.
I have also tried with my first code and I get this error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You should use the 'Epic Link' field and pass the Epic key value.
The reason for the error when you used 'customfield_10011' is that the related field is not present in the Create screen of that issue type. Try adding the field to the Create screen and check again.
Thanks,
Vamsi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
@Vamsi Kandala You should use the 'Epic Link' field and pass the Epic key value.
Do you mean use it like this? or as?
"customfield_10014": "TEST-25"
I don't see the create screen, these are the screens I see.
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.