hi Team, I am trying to create a confiform for my team, where the team submits a form and a Jira ticket is created. i am struggling with 2 issues.
1. making Due date field is optional- if users leave it blank if am getting an error message as i cannot make the due date field optional in JSON- is there a way to mark the code to optional and only work when the field has value.
2. when users select any 1 out of 5 radio buttons- depending on the selection it has to select to sepecific user1 , user2 or user3 and add to ASSIGNEE in Jira
any help is much appreciated.
{
"fields": {
"project": {
"key": "Anand's Project"
},
"summary": "[entry.tbSummary]",
"description": "h2.Requestor \n *Name:* [entry.tbName] \n *Email:* [entry.tbEmail] \n *C/D#:* [entry.tbID] \n \n h2.Details \n *Description*: \n [entry.taDesc.escapeJSON] \n *Deliverables Required*:[entry.textdeliverables.escapeJSON] \n *Type of Request*: [entry.radiorequesttype] \n *Is there a specific deadline that needs to be met?:* [entry.texttargetdateYN] \n *Target Launch Date*: [entry.texttargetdate]",
"reporter": {
"name": "[entry.tbID]"
},
"issuetype": {
"id": "6"
},
"duedate": "[entry.texttargetdate.jiraDate]",
"priority": {
"name": "[entry.radiobusinesspriority]"
}
}
}
Hi @Anand K
You can use velocity templating inside the ConfiForms IFTTT macro to dynamically create a JSON mapping
For the assignee field you can use the same approach
Alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
apologies @Alex Medved _ConfiForms_ . this is fairly new to me. Could you help me with an example please?
User selected the Type of request Radio button (between 1 and 5)and depending on that Jira ticket (which is created) has to be assigned to respective user. Would you be able to draft up a sample mapping for below example?
Option "1": "User1",
Option "2": "User2",
Option "3": "User3",
Option "4": "User3",
Option "5": "User1",
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
#if(${yourradiofield} == '1')
"assignee": {
"name": "User1"
},
#elseif(${yourradiofield} == '2')
"assignee": {
"name": "User2"
},
#end
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks heaps @Alex Medved _ConfiForms_ This helped complete the code. thanks again for your quick response.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.