Forums

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

How to get JIRA key by entering field value from Particular project and epic through Confiforms

s mohanasundaram April 10, 2025

In Confiforms, if Summary is entered in the Field definition how to set JIRA key to another Confiforma field?


Summary: Test

Jira Key:?  how to set the value by looking the Summary value in particular project and epic?

 


 

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
Alex Medved _ConfiForms_
Community Champion
April 10, 2025

Do you want to search Jira issue by text entered and project (preset)? Is that what you are asking?

s mohanasundaram April 10, 2025

Yes, want to get JIRA issue for text entered.

 

If, entered Summay text value is :  ATM.

 (Confirm forms to return)Jira issue: XYZX

Confiforms to search in the preset project (Summary field) and return JIRA ISSUE KEY.

 

 

Alex Medved _ConfiForms_
Community Champion
April 10, 2025

What if there are multiple matching issues? Should it return the first one matching?

Small example utilizing lookup and set from WS rule and Jira REST API to search the issue by JQL

Storage format

<ac:structured-macro ac:name="confiform" ac:schema-version="1" ac:macro-id="653aebef-5c6c-480c-bb91-131b6806d67c"><ac:parameter ac:name="formName">form</ac:parameter><ac:rich-text-body><ac:structured-macro ac:name="confiform-entry-register" ac:schema-version="1" ac:macro-id="18666389-b17a-45a1-8a62-c590fb2c9e7c"><ac:parameter ac:name="type">Embedded</ac:parameter><ac:rich-text-body><p><br /></p></ac:rich-text-body></ac:structured-macro><p><ac:structured-macro ac:name="confiform-field-definition" ac:schema-version="1" ac:macro-id="98a9e0d2-3a08-4b3e-b72a-fa0dba5d88d5"><ac:parameter ac:name="fieldName">summary</ac:parameter><ac:parameter ac:name="fieldLabel">Summary</ac:parameter><ac:parameter ac:name="type">text</ac:parameter><ac:parameter ac:name="required">true</ac:parameter></ac:structured-macro> <ac:structured-macro ac:name="confiform-field-definition-rules" ac:schema-version="1" ac:macro-id="afc71d5e-ee67-4f52-b60c-47eb1ab85ea8"><ac:parameter ac:name="condition">!summary:[empty]</ac:parameter><ac:parameter ac:name="fieldName">jiraKey=[entry.issues.key]</ac:parameter><ac:parameter ac:name="values">/rest/api/2/search/jql?fields=key&amp;maxResults=1&amp;jql=project%3D%22TEST%22%20AND%20summary~[entry.summary.urlencode]</ac:parameter><ac:parameter ac:name="action">Lookup and set WS value</ac:parameter><ac:parameter ac:name="actionFieldName">summary</ac:parameter><ac:parameter ac:name="values2">d6b280630721f43c2f474f73f46b5cf4</ac:parameter></ac:structured-macro></p><p><ac:structured-macro ac:name="confiform-field-definition" ac:schema-version="1" ac:macro-id="ac2645d7-ca8d-48c8-8e12-a6041a21057f"><ac:parameter ac:name="fieldName">jiraKey</ac:parameter><ac:parameter ac:name="fieldLabel">Jira issue</ac:parameter><ac:parameter ac:name="extras">vertuna cloud</ac:parameter><ac:parameter ac:name="type">jira</ac:parameter></ac:structured-macro></p><p><br /></p></ac:rich-text-body></ac:structured-macro><p><br /></p>

 

 

s mohanasundaram April 21, 2025

Thanks Alex , I tried using the storage format, since my organisation haven't enabled Webservice Connection ,so the confi forms rules "could not  find any configured WS connections to be used with Confiforms", hence the Jirakey field name doesn't return any value.

Could you please suggest any other options to return the Jirakeykey field?

 

Alex Medved _ConfiForms_
Community Champion
April 21, 2025

To query an external service you need a connection to that service. There is no other option possible 

TAGS
AUG Leaders

Atlassian Community Events