Forums

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

Need Help to Link Issues (Task) Created by Confiform

Kritika Buttan June 2, 2024

Scenario:

Issue 1 (Task) to be created if PG 1 is selected.

Issue 2 (Task) to be created if PG 2 is selected.

However we need to use "Issue 1 Relates to Issue 2".

Code used:

#set ($thisTEAM = "")
#set ($thisREQUEST = "")

#if ("[entry.ImpactedPoDs.escapeJSON]" == "AIMRKK")
 	#set ($thisTEAM = "46452")  
#end     

{
"fields": 
{
	  	"project":       { "key": "AIMRKK" },
		"issuetype"	:    { "name": "Task" },
		"summary" :   "[entry.Summary.escapeJSON]",    
  		"labels":	["$thisREQUEST", "WMPAdviceIntake",],  
   		"customfield_19600": "$thisTEAM",                     
		"description" : " *Submitter Name:* [entry.SubmitterName] \n\n *Submitter Email:* [entry.Email] \n\n *NDA:* [entry.NDA] \n\n *Request Type:* [entry.TypeOfWork.label] \n\n *Submitter Org:* [entry.SubmitterOrg] \n\n *Impacted PGs:* [entry.ImpactedPG] \n\n  \n\n *Other Impacted Journey/Platform:* [entry.ImpactedPlatforms] \n\n *Request Summary:* [entry.Summary.escapeJSON] \n\n   *Request Description:* [entry.Description.escapeJSON] \n\n *Target Date Org:* [entry.TargetDate] \n\n *Severity:* [entry.Severity] \n\n  *Additional Details :*  [entry.AdditionalDetails.escapeJSON] \n\n "

 "issuelinks":[ { "add": { "name":"Link", "inward":"relates to"},  "outwardIssue":{ "key":iftttResult_JIRAID.escapeJSON}}]  
}
} 

2 answers

0 votes
Alex Medved _ConfiForms_
Community Champion
June 3, 2024

Consider having 2 ConfiForms IFTTTs - one that runs on PG:1 condition, while another runs on PG:2 condition.

Not sure though what you mean by "Issue 1 Relates to Issue 2"... Is there a use case when you create BOTH issues at the same time (on form submit)?

Kritika Buttan June 3, 2024

yes, we are creating, 

ConfiForms IFTTT 1 is creating TASK 1 with PG:1 condition.

ConfiForms IFTTT 1 is creating TASK 2 with PG:2 condition.

Requirement : Task 1 relates to Task 2.

 

Alex Medved _ConfiForms_
Community Champion
June 3, 2024

What field type is PG?

How could you create BOTH tasks - in which case? Is PG a multi-select field?

Kritika Buttan June 4, 2024

PG Field is checkbox group (Group 1- 5).

If PG Field <> Group 1 : Task 1 is created

If PG Field = Group 1 : Task 2 is created

If PG Field = Group 1 and Group 2: Task 1  and Task 2 is created. However Task 1 and Task 2 must be linked Relates to.

Alex Medved _ConfiForms_
Community Champion
June 4, 2024

So you will need multiple IFTTTs - 3 to be precise

1. Create Jira

2. Create Jira

3. Update Jira, conditionally executed and uses the result of the IFTTT 1 for issue key and the result of the IFTTT 2 in the JSON, setting the issue links

 

0 votes
Kritika Buttan June 3, 2024

Scenario:

Issue 1 (Task) to be created if PG 1 is selected.

Issue 2 (Task) to be created if PG 2 is selected.

However we need to use "Issue 1 Relates to Issue 2".

Suggest an answer

Log in or Sign up to answer