Sam Harding Atlassian Team

Comments

  • Hi @Moazzam Faisal It sounds like the other answers in this thread have got you on the right track, in looking into whether the field has been set or is empty at the time of the rule execution. It seems like perhaps the trigger is not the right one for what you are trying to achieve. At the time of the rule creation, the…
  • Hi @Mattia Meneghetti This should be possible to do, the exact configuration of the rule would depend on exactly how you would like it to work. For example, lets say you wanted to move all the tickets assigned to Mario in the current sprint, when a new ticket assigned to Mario is added to the sprint. You could have the…
  • Hi @Paweł Kosicki Automation does not provide the specific functionality you are looking for, but there may be some ways to get the data out of the issue in an Automation rule, and send it to an external web address. The smart value {{issue.properties."proforma.forms.i1"}} is a way to access form data on an issue in a…
  • Hi @NERUSU VENKAT NAVEEN It sounds like this would be better solved by raising a ticket with https://getsupport.atlassian.com/ so we can look at your instance and assess what is going on. If you are experiencing performance issues with your Automation rules, it would be best if we could run some diagnostics and tests to…
  • Hi @James K_ Uploading the json of your rule could help here, but it also seems like there is some nuanced details at play here affecting your rule execution. It may be more effective to raise this as a support request at https://getsupport.atlassian.com/ so we can take a look at your use case in greater detail, and get to…
  • Hi @Peter “Tok Sik” Cano Currently Automation doesn't support Trello, and so we do not provide any functionality for the location feature at this time. Perhaps the Trello community can help provide some alternative solutions they have found for your problem. Cheers Sam
  • Hi @ankur_gupta_contractor Collating this information on a per user basis is tricky, to the point of not being possible/advisable. You can however get this information on a per worklog and issue basis to put into a report. For example, if you were to trigger on "Sprint Completed", then do a "Lookup Issues" with your JQL as…
  • I am personally not too familiar with Scriptrunner's capabilities, but I believe it should be doable. There is rest API endpoints to fetch the PR data from Jira which you can access with Scriptrunner See https://community.atlassian.com/t5/Jira-questions/JIRA-REST-API-to-get-list-of-branches-related-to-a-issue/qaq-p/800389…
  • Hi @Vladislav Gorbunov Which trigger are you using for your rule? Are you triggering on 'Version Created', and creating the task in the rule? If so, the smart value you can use is {{version}} to access the created version, which has a few fields you can access on it eg. {{version.name}} Cheers Sam
  • Hi @Shushan Kocharyan Unfortunately this isn't possible using the issue smart value like your rule is using. This is because the issue fields do not contain the full pull request information, hence why the `pullrequest` smart value is only available to the relevant triggers. You can see the full data the issue fields has…
  • Hi @Noah Tanzer Your regex looks good. Does your issue contain just the serial number, or is there other bits of data in the description? Your regex requires it to only have the serial number in the description. Otherwise, perhaps try logging out {{issue.description}} using `Log Action` component? And maybe you can try…
  • Hi @Vallala Ujwala I can't see where this rule is closing the parent tasks in its configuration. It looks like there may be more involved here, namely a workflow configuration outside of Automation which is closing the parent task. Could you check if there is a workflow which could be causing this to happen? If you cannot…
  • Hi @ADITHI BALASUBRAMANIAN As @Bill Sheboy has indicated, what you are experiencing may be expected, depending on how the rule is structured and what conditions are being met. If your rule triggers of both issues 1 and 2, it is possible that the rule is configured such that creating the duplicates is "expected". If you…
  • Hi @Jacob Pines As @Ashley Hudson has said, it is not possible to filter the rule executions that are displayed in the issue view. We are currently working on updates to the user experience around audit logs and Automation rule data, this seems like a great suggestion for an improvement we can make here. Thanks for the…
  • Hi @Bill Sheboy Thanks for pointing that out. It doesn't entirely surprise me, as there are some differences in the field ids/names between the two. The smart value system itself is the same between the products, so I suspect it would be an issue with field mappings. Im curious, does the smart value…
  • Hi @Ben Greene Apologies for the delayed response. To answer your questions: Is that something that Templates can achieve, or would I need to use a web request? This is something you would need to use a web request for, as you are doing. am getting this 500 Internal Server Error It would appear that the JSON data being…
  • Hi @Deniz Karadal Apologies for missing that part of your first message. A version of this that should work for data center is {{#if(number(issue.key.split("-").get(1)).gt(100))}} {{issue.key.split("-").get(1)}} {{/}} Give that try, hopefully that fixes it for you Cheers Sam
  • Hi @Deniz Karadal Seems like the split may already be returning a number. Can I confirm, you are running in cloud? Can you try Conditional: {{issue.key.split("-").get(1).gt(100)}}
  • Hi @Deniz Karadal That's strange, apologies for the solution not working for you, it seems to work as expected for my test cases. Can you confirm for me, what printing the following smart value to the audit log produces in your rule? Cheers String: {{issue.key.split("-").get(1)}} Number:…
  • Hi @Deniz Karadal The problem you are facing is that the function `gt` is not valid with that usage. In smart values, `gt` is a function on numbers only. Can you try changing your smart value to {{#if(issue.key.split("-").get(1).asNumber.gt(100))}} {{issue.key.split("-").get(1)}} {{/}} Also note the internal smart values…
  • Some similar discussions can be found on this thread, maybe this will provide some help https://community.atlassian.com/t5/Confluence-questions/How-can-i-create-a-new-page-from-a-users-template-using-rest-api/qaq-p/1059884
  • Ah yes, using a template in this case would be very difficult. I don't really think there is a viable approach there without having to do some very long and complicated text manipulation (ie, hitting the confluence api to fetch a template, then use a series of regex replacements to populate it). Perhaps a better approach…
  • Hi Danilo, Glad it worked for you. Just a note on the rule you have now, the branch type there being 'For linked issues' means it will execute the actions on all linked issues, not just the link that triggered the rule. If that's desired, then not a problem. For the case where you just want it purely for the link that…
  • Hi @manu You can trigger off the original estimate change by selecting field 'Time Tracking'. You can access the original estimate change by using the smart value `{{fieldChange}}` which will include the field `originalEstimate` Cheers Sam
  • Hi @Stefan Prelle You could try to use the web request action to manually call the create content api, and populate it with the information you want See https://community.atlassian.com/t5/Jira-articles/Automating-the-creation-of-a-Confluence-page-linked-to-a-Jira/ba-p/1760738 Hope that might help you Cheers Sam
  • Hi @Danilo Simic It seems like the link source vs destination is not the expected order when it comes through to the automation rule. Can you verify this by logging out `{{destinationIssue}}`? The issue link trigger has a description on the context in which a link trigger executes: Rule executes when an issue is linked to…
  • Hi @Robin Taylor I am not familiar with the xray add-on, so apologies if anything I provide here is missing the mark. Automation is able to trigger on issues created by any source, including add-ons. So in your first use case of wanting to link all relevant tasks to the (Sub) Test Execution, there are a few ways you would…
  • Hi @Ben Greene At this time, the content must be set via a template. This restricts how much information can be inserted into the page at creation. If you are wanting to have more configurable options of content, there are other approaches using web requests to create content in Confluence. Have a look at this community…
  • Hi all, Unfortunately at this time, only the custom templates are available in the template picker for the create page action. I have raised an improvement for this here https://codebarrel.atlassian.net/browse/AUT-2437 Cheers Sam
  • Hi @Robert Marten To allow other automation rules to trigger your rule, you need to check a box on the 'Rule Details' page of your automation rule. If you go to your rule details page, you will see a check box marked: "Check to allow other rule actions to trigger this rule. Only enable this if you need this rule to execute…