Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to set a report in a jira ticket from confi form

Confi User July 25, 2022

I want to set a reporter on a jira ticket different than the one submitting the ticket. I have tried:

"reporter": { "id": "........" } 

and

"reporter": { "name": "......" }

but it does not seem to be working. Is this the wrong approach?

1 answer

0 votes
Alex Medved _ConfiForms_
Community Champion
July 25, 2022

Hi

This has very little to do with ConfiForms, as it is about Jira REST API and how to use them to create Jira issue and set the reporter

The answer is - it depends. Do you use it on server or cloud, but it was answered many times in the community

Quick search (cloud Jira) - https://community.atlassian.com/t5/Jira-questions/Create-an-issue-with-rest-api-set-reporter-name/qaq-p/1535911

(server Jira) https://community.developer.atlassian.com/t/proper-way-to-set-reporter-system-field-via-create-rest-api/41399

Alex

Confi User July 25, 2022

I don't have access to creating jira from Rest API, so I was wondering if there is a confi form equivalent using the Jira Create form definition?

Alex Medved _ConfiForms_
Community Champion
July 25, 2022

ConfiForms uses (underneath) Jira REST APIs to create Jira issues 

Confi User July 26, 2022

Sorry I am still a little confused, how would I call the API? Do I do it inside the form or externally etc... I haven't used this before, so I am not sure as to how I am suppose to go about it 

Alex Medved _ConfiForms_
Community Champion
July 26, 2022

OK, where have you tried the approaches you have described in the initial question? 

Confi User July 27, 2022

I want to put it in the IFTTT Integration Rules with event = onCreated and the action is to Create JIRA Issue. I have a field for "reporter = {id: "name"}". Is that enough information? 

Confi User July 28, 2022

@Alex Medved _ConfiForms_ is this enough information?

Alex Medved _ConfiForms_
Community Champion
July 28, 2022

Sorry, I don’t understand the context of your question. 

Confi User July 28, 2022

@Alex Medved _ConfiForms_ 

I want a user to fill out a confi-form in confluence that will create a jira story, but the reporter will be someone else. I don't want the person filling out the form to be set as the reporter of the story, but rather someone else on the team. The way I have it currently setup is:

{

"fields": {

"project":{ "key": "XMEN" },  

"issuetype": { "name": "Story" },        

"summary":"stuff",

"components":[{"name":"..."}],

"customfield_26912":{"value":"Functional"},

"customfield_19600": "2098",

"reporter":{"id":"username"},
"description": "setting reporter"

}

}

But this doesn't work because "reporter" is giving me an error.

Alex Medved _ConfiForms_
Community Champion
July 28, 2022

What error it is giving you and where have you found the format for reporter field as you have, using the "id" ?

According to https://developer.atlassian.com/server/jira/platform/jira-rest-api-examples/ the user picker field is set as 

{ "name":"username" }

 Alex

Confi User July 28, 2022

image.png

This is the error I get when I use "reporter":{ "name": "username"} or even "reporter":{ "id": "username"}

Alex Medved _ConfiForms_
Community Champion
July 29, 2022

You can "google" this error really - it is the most common error you can have... and it happens when you attempt to set a field that does not exist in the issue create screen for this particular issue type and project

The field must be VISIBLE on the issue create screen

Suggest an answer

Log in or Sign up to answer