Forums

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

Date value should be selected after X days if I select a value in above dropdown field

Ajaygoud Gaddam
April 28, 2022

We have Location field as drop-down field and date field. here we need if I select value XXX from Location the date field should be selected after 10 days and If I select YYY in the location the date field should be selected as 5 days after the current date. 

We are using JMWE any script can be shared which suits for this condition

Thanks,

Ajay

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
Neta Elyakim
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
July 19, 2018

I don't know how you want to do it (how your process will work) but here is how you can link between issues :

def link = post('/rest/api/2/issueLink')        
.header('Content-Type', 'application/json')        
.body([            
type: [ name: "Resolves" ],    //The link name    
outwardIssue: [ id: issueId ],  // This is the issue that the link 'starts' at
inwardIssue: [ key:  secondIssueKey // You'll need to specify an issue ID or key here        
])        
.asString()
assert link.status == 201

Please notice to change the link type- name to the relevant link name, issueId and the secondIssueKey params to the releavent issues.

TAGS
AUG Leaders

Atlassian Community Events