Hi ,
I am using google form to create an automatic jira task using Jira REST API. But i want to create that task inside a predefined Epic, so that it becomes easy to track the tasks.
Any help is highly appreciated.
Hi @sachin.sharma
In the issue you are creating, just add another field called"epic link" and set it with the epic you want.
Of course "epic link" should also be available in the create screen of the issue via the UI
Hi @Nir Haimov ,
I have below json and code , can you please help how to use epiklink to pass the data.
JSON:-
{
CODE:- few lines of code to send data.
var formattedDate = ''var data = {}var fields = {}fields.project = { "key": "ABC" };fields.summary= summary;fields.labels= [system];fields.description= description;fields.priority = {"name": severity };if (deadline != ''){formattedDate = Utilities.formatDate(new Date(deadline), "EST", "yyyy-MM-dd");fields.duedate = formattedDate;
2. I am unable to find epiclink in UI.
Hi @sachin.sharma ,
First, you have to add "epic link" to the UI create screen, otherwise it will not work via REST API.
Once you add it, it your API use this body as example:
{"fields": {"project": {"id": "12200" //your project id},"summary": "Nir API Test","issuetype": {"id": "10100" //this is the id of "task"},"customfield_10001": "JAT-641" //customfield_10001 is "epic link" and replace "JAT-641" with you epic key}}
That's it, very simple
check the id of your "epic link" field, it might be something else, but API body should be the same concept
It looks like you're new here. Sign in or register to get started.