Hi,
I'm trying to retrieve the key from a created issue to fill a custom field in the trigger issue.
Trigger and Created issues are in different projects and are sub task types
Problem is that I need to branch it to retrieve data from the Created parent issue to gather the key of a previously created issue that will be the parent of the new one in a different project)
Trying so many ways API seems the direction but I get a 405 whenever i try to use smart values in the URL.
Any clues?
Thanks in advance
If you write that constructed URL to the audit log, what do you see?
And, have you confirmed your request is set up correctly. Please see this article for an example: https://community.atlassian.com/t5/Jira-articles/Automation-for-Jira-Send-web-request-using-Jira-REST-API/ba-p/1443828
Kind regards,
Bill
Hey Bill, thanks for answering
Got a 405 error:
Error publishing web request. Response HTTP status:
405
Error response HTTP body:
If I change {{issue.parent.key.urlEncode}} to for example ABC-1 it works
And yes, i saw that one and i followed it
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Understood, but if you write that dynamic URL expression to the audit log, run your rule, and post the audit log details, it may reveal this is not formatting as expected.
My guess is this is caused by one of two possibilities:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i see, couple of questions to confirm,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
First thing, have you tried adding the Re-fetch Issue action to solve this?
On to your questions...
Yes, the {{triggerIssue}} smart value is available anywhere in the rule. (It is even available if there is no trigger issue!)
For your second question, please note that context is important for rules:
I am unclear which issue you are trying to access with the Send Web Request action. If you describe that it may clarify which smart value to use.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yep, I'm trying to use the re-fetch , seem that it's going that way but also i am not pointing to the right one.
Parent issue ID: '616621' / Key: 'ITCR-68' can not be sub-task. (issuetype)
It seems it's taking the Trigger as the one created in the branch, and what I need is the
very first one in the image flow above
Thanks for the help!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you want to update the trigger issue, I recommend changing the rule as follows:
What do you think?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Bill, thanks for the answer,
it looked good but i've still got the same error following that flow
Create issue
Error creating issue
Parent issue ID: '620343' / Key: 'RCPM-506' can not be sub-task. (issuetype)
I think that if Branched is not used, it will try to create the subtask in the trigger issue not in the lookup one
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Rather than selecting Current Issue for the parent field, please type in the smart value for the key you want to use.
When you do that, the key will appear below the field, and then it may be selected for use in the action.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
it seem that this drop down only allows to choose between current and trigger issue, no input for variables.
Neither the current or the trigger will be the parent in this case
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The UI for the rule edit is not clear on this feature...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bill,
I was referring to the create, not to the edit . In the create one only two options are available and no way to input anything.
In any case, I've took a different route and automate it via API as it seems that it's not doable using the pre defined actions.
Thanks for your help!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am glad you found a work-around, and...
Are you using Jira Cloud?
If so, I just checked again and a smart value can be typed in for linking issues, both for the Create Issue and the Edit Issue actions. Earlier I noted the steps how to do that.
If instead you are using Jira Server, I do not know if that method works.
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.