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,465,022
Community Members
 
Community Events
176
Community Groups

ConfiForm -Component/s error

Edited

Hi All,

I'm new to ConfiForms.

I created a ConfiForms Form were the results are to be used to create a Jira issue using the IFTTT integration rules.

I'm getting error on System field "Component/s" and its a required field in that particular project.

Could someone help me how to describe JSON for that particular field?

image.png

image.png

3 answers

1 accepted

0 votes
Answer accepted

Field names are case sensitive!

Components != components

You are also missing a comma after the "TestComponent1"}], <----- comma is missing

@Alex Medved _ConfiForms_  Thanks!

 

I edited the comma and adjusted the Components,

Still I'm getting the same error.

Could you please help me to resolve it?

You could not be getting the same error if you have changed the name and fixed the JSON mapping.

 

Also, please check if you actually can set the components on Jira issue when you create the issue in Jira via UI (of type "Task" in INF project)

Do you see "components" field there (in JIra Create Issue form)?

image.png

Yes I can see,

Please check the screen shot and components is system field with multi selected option and it's a required field for the "Task" issue type to the particular project.

How does the complete (jira issue JSON) mapping looks like?

Like Zuber Khan likes this

Sorry!! I didn't get you.

On Confluence/ConfiForms side you have a JSON mapping (in IFTTT macro body)

how does it look like now?

Sorry, but I was asking about the macro body, no macro properties...

Something what you have on your initial screenshot, but current

Alex

Currently I'm trying with different JSON syntex, 
But I didn't  get the result, not sure how to set.image.png

But setting components in Jira is done differently!

You should really consult the documentation for Jira API - there is nothing to do with ConfiForms here... 

"components" : [{"name" : "Network [entry.tname]"}]

 (and you had it almost right initially, but then moved to something else - really dont understand why)

Also, in your mapping you have a },} in the end.. WHY do you have a ","? Jira expects a valid JSON to be posted

Alex

Now I'm getting this error,

Thanks,

Prabakaran

image.png

OK, and what do you ask?

I believe the error message is self explaining - you dont have a component by name "Network" registered... and therefore it is not valid as an input

Hi @Alex Medved _ConfiForms_ 

If I use this "components": [{"name":"Applications"}], It's working with out error and Jira ticket is getting created with the component as "Applications" only, but I should allow the users to select their choice. 

How I can get those options?

Could you please help me with the code?

@Alex Medved _ConfiForms_ 

Thanks! , Now it's working as per my requirements, 

I've another field to set.

Priority System field, I'd like to have the sysntex to set this field in ConfiForm.

Could you please help me?

Thanks

Simple search over the community reveals good answers to this question.. For example this one https://community.atlassian.com/t5/Jira-questions/Can-t-set-priority-when-creating-an-issue-REST-API/qaq-p/1190923 

 

Alex

k M I'm New Here Oct 03, 2022

@Prabhu Prabhakar ,What was done finally to fix this component/s issue to call from jira as I am also facing the same issue while trying to call jira from confiforms.

 

Can you please share the working code here so I also implement the same.

0 votes
k M I'm New Here Oct 03, 2022

@Prabhu Prabhakar , What was done to fix this component/s from jira to confiforms ,Can you please share the working code here as I am also facing the same issue while trying to call confiforms from Jira..I need user to select the application name from confiforms and the same to be populated as a jira ticket..

0 votes

Bad practice but if you still want to do it the documentation is your freind.

https://developer.atlassian.com/server/jira/platform/jira-rest-api-examples/#editing-an-issue-examples

Setting the components field

Request

Copycurl \ -D- \ -u charlie:charlie \ -X PUT \ --data {see below} \ -H "Content-Type: application/json" \ http://localhost:8080/rest/api/2/issue/QA-31

This is an example input data:

Copy{ "update" : { "components" : [{"set" : [{"name" : "Engine"}, {"name" : "Trans/A"}]}] } }

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events