Here is my use case.
I have to create multiple tasks under a single user story (SMGP-1000) on the 3rd of every month. These tasks are tracked for various purposes. Now, I am able to create multiple tasks using the below code.
new_task=jira_instance(project='2323', summary='New Task',description='',issuetype={'name'='Task'})
Then what I am trying is, to use this function from Jira add_remote_link() function to link this task with SMGP-1000. At this point, I get a failure ( Get Recoverable Error from GET https://jira......, will retry [1/3] in 10s "
add_remote_link(SMGP-1000,new_task ) # I tried swapping the variables, but still same error.
Could you please help me with a code snippet on how to link this new task to that given story?
Hi @Clicker
I believe you need to use create_issue_link
It would be something link this
inwardIssue = jira.issue("storyissue-1")
outwardIssue = jira.issue("taskissue-1")
issueLinkType = 'Relates'
jira.create_issue_link(issueLinkType,inwardIssue,outwardIssue)
I hope that helps.
Kind regards,
Thiago Masutti
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.