Referencing JIRA reporter name in a confluence field
Asked by inderpreet lahil:

Hello,

I am creating a page with fields in Confluence. I have an input field name JIRA key. This field will be used to locate a JIRA issue. The field following this field is "JIRA Reporter". I want this field to auto-populate with the name of the reporter once the user enters a value for the JIRA Key field. So basically want to reference the reporter name in a Confluence field. Please assist.


Answers:
author: Lissa Meade
body: You could add a jira macro using the table display option, remove all of the fields you don't want and then use this as your query string: "key=FLP-108". Would that work?![Screen Shot 2020-12-22 at 2.31.00 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/123255i149BEBC4769AAB33/image-size/large?v=v2&px=999 "Screen Shot 2020-12-22 at 2.31.00 PM.png")

comments: author: inderpreet lahil
body: I am not sure if that would work in terms of how I am trying to use it. So I am wanting my "Reporter name" field to auto populate with the name of the Reporter from the Jira issue. I want this happen once I enter the Jira issue number in the "Jira Key" field on my form. Let me know if my question makes sense


author: inderpreet lahil
body: Also i want it to auto populate before i submit the form. So as soon as i enter the Jira issue number, I want the Reporter name to be filled. Then i hit submit after.


author: Alex Medved _ConfiForms_
body: What **form** are you talking about? What form are you submitting and how is it built?


author: inderpreet lahil
body: So basically here are the two fields. I want the "Jira Key Reporter" to auto populate with the reporters name when the user enters the "JIRA Key"![Capture.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/123367i94C89BE136D68A95/image-size/large?v=v2&px=999 "Capture.PNG")


author: Alex Medved _ConfiForms_
body: This looks like a ConfiForms form from the screenshot. Is that a correct assumption?

If yes then you can use a ConfiForms Field Definition Rules macro and set the value to reporter field directly from a selected Jira issue

We show the idea here <https://wiki.vertuna.com/display/CONFIFORMS/Accessing+Jira+issue+fields+directly+from+ConfiForms+using+Jira+issue+field>

But what I mean is that you can do it via ConfiForms Field Definition Rules "set value" action (set it to track your "Jira Key" field)

Alex


author: inderpreet lahil
body: ![Capture.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/123378i6D229F0CDECEBCF9/image-size/large?v=v2&px=999 "Capture.PNG")that is what i am doing but it is not working


author: inderpreet lahil
body: reporter is the field name of "JIRA reporter"


author: Alex Medved _ConfiForms_
body: We seems to have a bug in ConfiForms Jira field here, as it doe snot seems to fire an event that the value has been changed (when you select a Jira issue) and therefore the rule does not get called.

It is fixed now in <https://wiki.vertuna.com/display/CONFIFORMS/Release+Notes#ReleaseNotes-Version2.16.7>

The configuration to do what you are trying to do will be something like: <http://recordit.co/rU6vjdSFUb>


Tags: jira