Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,463,428
Community Members
 
Community Events
176
Community Groups

Use Field Key in Portal Forms from Jira Service Management

Hello!
I have a Data Connection in my Portal Forms connected to a singe-dropdown. 

WHen using a Data Connection, you aren't able to link the chosen data to a Jira field as you'll get the error:

A field cannot be linked to both a Jira field and a data connection.
If you wish to link to this Jira field, remove the data connection first.
How can I link this field to an existing Jira Custom Field in order to be able to SEARCH through JQL with this Custom Field as a parameter? 
Currently, the field seems to be some type of "virtual" field that doesn't connect to anything after the incident is created. 

2 answers

I have an alternative solution for this, not ideal but might help.

1. After the issue is created, we can access the Forms field data based on its properties, fox example:

For the ID of the field:

{{issue.properties."proforma.forms.i1".design.questions.1.choices.get(0).id}} 

For the label of the field (display value):

{{issue.properties."proforma.forms.i1".design.questions.1.choices.get(0).label}}


NOTE: When a Forms field is used with a Data connection, it always has 2 properties: ID and label - as defined via the Data connection.

The exact structure of the smart value will depend on the structure/order of field in the Forms, to visualize it we can use Entity Property Tool for Jira.

2. Set/clone the Forms' value to another Jira custom field via Automation Rule. For example: the Forms field that is used for Data connection is named: Client (Forms), we clone the selected value into another Jira custom field called: Client, and use this custom field for the JQL.

Ref: https://community.atlassian.com/t5/Jira-Service-Management/How-to-access-the-form-data-in-Jira-Automations/qaq-p/2050277

0 votes
Guilhem Dupuy Community Leader Apr 01, 2022

Hello @Kim Andersson ,

I'm pretty new to the use of forms to but to my knowledge, in order to link a form field to an actual Jira Custom field you need to use the "Linked Jira field" option, right on top of the "Data connextion" option.

Then the link will work both ways, which means that you form field will take values in your custom field, and when the form is created the value is copied in your jira custom field.

Does it help ?

Guilhem

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events