Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
  • Community
  • Q&A
  • Jira
  • Questions
  • Create jira issue from confluence with confiform with constant label and showing created issue link

Create jira issue from confluence with confiform with constant label and showing created issue link

ebrahim rezaian March 27, 2023

Hello 

I have created a confiform form that create issues to jira.

i want to add a constant text value to each created issue. for example all created issues must be with "Test" label.

 

1 answer

1 accepted

1 vote
Answer accepted
Alex Medved _ConfiForms_
Community Champion
March 27, 2023

Hi

What is the problem?

Just add a static text in one of the fields in the mapping where you want to have this "static text"

Alex

ebrahim rezaian March 27, 2023

@Alex Medved _ConfiForms_ 

yes i want all the created issues in this way be with "test" label

ebrahim rezaian March 27, 2023

@Alex Medved _ConfiForms_ 

 

{ "fields": { "project": { "key": "STTS" }, "summary": "[entry.summary.escapeJSON]",            "labels": "[test]",             "assignee":{"name":"[entry.assignee.escapeJSON]"},              "issuetype": { "name": "Task" } } }

this is my mapping.

but it doesn't work  

Alex Medved _ConfiForms_
Community Champion
March 27, 2023

Why should it work? According to Jira REST API docs labels expect an array...

 "labels": ["test"]

  Alex

Like koutarou ishibashi likes this
ebrahim rezaian March 27, 2023

@Alex Medved _ConfiForms_ 

thank you

another question

Can I have the link of created issues in below confiform table as a field ?

 

Screenshot 2023-03-27 132058.png

Like ebrahim rezaian likes this
ebrahim rezaian March 27, 2023

@Alex Medved _ConfiForms_ 
thank you that was really helpful

Suggest an answer

Log in or Sign up to answer