youngmon/atlassian-qna huggingface dataset:
Copy fields in the same issue with automation
Asked by Antonio Burgos Vieyra:

I'm having trouble copying fields in an automation.

I need to copy the sprint field of the issue to another field of the same issue when this sprint field undergoes any change.

That's possible?


Answers:
author: Nic Brough -Adaptavist-
body: Welcome to the Atlassian Community!

I suspect you are not able to do this directly because the Sprint field is a different type of field to your target field. You probably need to get the names of the sprints in the sprint field and copy them out to plain text in the target field.


author: Boldizs?r Vermes
body: [@Antonio Burgos Vieyra](/t5/user/viewprofilepage/user-id/5241488), do you want to back up the former value of the sprint field? In this case I suggest examining the [fieldChange](https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--fieldChange--) or [changelog](https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--changelog--) smart values.
Need help in listing out tickets in slack messages via JIRA automation
Asked by Rakhesh Mohan:

Hi Team, I am trying to configure a JIRA automation that sends slack messages as a reminder for tickets that needs to be investigated that are in a specific status for more than 5 days, I am able to do the configurations and slack messages are received, but the format is kind of not pleasing. So I have attached the screenshot of the message payload in the JIRA and the screenshot of the slack notification that I received in channel. I need the heading to be a constant at the top of the message and not to be repeated for each tickets. Can someone please help me to achieve this?![Screenshot 2023-06-26 at 18.40.38.png](https://community.atlassian.com/t5/image/serverpage/image-id/265116i94313DB4FF80A45A/image-size/large?v=v2&px=999 "Screenshot 2023-06-26 at 18.40.38.png")![Screenshot 2023-06-26 at 18.41.21.png](https://community.atlassian.com/t5/image/serverpage/image-id/265117i49A3EDCD82285AD7/image-size/large?v=v2&px=999 "Screenshot 2023-06-26 at 18.41.21.png")


Answers:
author: Daniel Eads
body: Howdy [@Rakhesh Mohan](/t5/user/viewprofilepage/user-id/5253611) , and welcome to the Community!

Switching the rule to use a [Lookup Issues](https://support.atlassian.com/cloud-automation/docs/jira-automation-actions/#Lookup-issues) action will populate an array of issues that you can reference from the Send Slack Message action.

I would suggest a rule like this:

When: **Scheduled** (probably one time a day on weekdays?)

Action:**Lookup Issues**

You've probably got the JQL for this already - this is where your filter for the issues being in the status more than 5 days goes.

Action:**Send Slack Message**

Here's the trick - we'll iterate over the list from the last action using the lookupIssues function:

```
:warning: *The following tickets are In Progress for more than 5 days and require your attention!* :warning:

{{#lookupIssues}}
* <{{url}}|{{key}}> - {{summary}}
{{/}}
```

That should print each issue on its own line without re-printing the header message (or footer, if you include one after the list as well).

<br />

Cheers,  
Daniel

comments: author: Rakhesh Mohan
body: This solution worked perfectly!! Thanks a lot [@Daniel Eads](/t5/user/viewprofilepage/user-id/1527694) .


author: Bill Sheboy
body: Hi [@Rakhesh Mohan](/t5/user/viewprofilepage/user-id/5253611) -- Welcome to the Atlassian Community!

Without seeing your complete automation rule, I am making some guesses to help. For a question like this, please post images of your complete rule and audit log details; those will provide context for the community to offer suggestions.

Until we see those...

As you are using the {{issues}} smart value I am guessing you are on Jira Server or Data Center version. Is that correct?

If so, please try using the bulk-handling option as that will treat the trigger (or branch) results as a set and so only run once. Please look here for more information on that: <https://confluence.atlassian.com/automation/run-a-rule-against-issues-in-bulk-993924653.html>

Kind regards,  
Bill
API Integration tools for Jira and JSM projects
Asked by Prabhu Palanisamy _Onward_:

Community, I'm interested to learn about the common integration tools that you use to integrate Jira/JSM to external applications. Do you use direct API integrations and custom coding for automation? Do you use any marketplace apps? Any feedback on Workato or other native integration tools would be helpful. Thanks in advance.


Answers:
author: Syed Majid Hassan -Exalate-
body: HI [@Prabhu Palanisamy _Onward_](/t5/user/viewprofilepage/user-id/5245705)

I work with team [Exalate](https://marketplace.atlassian.com/search?query=issue%20sync), a bi-directional synchronization solution for different ITSM platforms. As you can imagine my days are spent talking to clients who are looking to integrate Jira with Jira or with other systems. I hardly come across anyone these days who is using a build-it-yourself approach simply because of the resources and maintenance required to keep such an integration going. In fact, we come across several organizations who have tried the DIY approach, and are not looking to switch to an application.

But whether it is a DIY solution or an app, I believe a vast majority would be using APIs under the hood.

Please let me know if you have any specific questions and I would be happy to take this interesting topic forward.

Thanks

Majid


author: Nic Brough -Adaptavist-
body: Generally, I'll do the integrations from Jira, using Scriptrunner, but Zapier and IFTTT are good when it's better to do it from the outside (i.e. the other system is the thing triggering a need to do something inside Jira)

When there are good integration apps though, use them - only look to create your own integrations when there is no app or the ones you find do not cut it. Lean on previous experiences.

Blatant advert: Nowadays, though, I use <https://www.adaptavist.com/products/other-apps/stitch-it> - it makes integration between piles of Atlassian systems a doddle, supports a few non-Atlassian apps and we're adding modules for more non-Atlassian systems as customers adopt it and we come to understand their needs more.


author: Evgenii
body: Hi, [@Prabhu Palanisamy _Onward_](/t5/user/viewprofilepage/user-id/5245705)

In 99% of cases I use REST API. Realization depends from requirements.

* If I need simple pushing issue data to external webhook - I use automation
* If I need complex processing of issue data with sending it to external system and processing of external response - I use groovy and sel-written scripts
* In some cases I use connectors, written in python, located between Jira and external service
* In some cases I use DB or LDAP connection (but very rare)

comments: author: Prabhu Palanisamy _Onward_
body: Thank you. Have you use any middleware/ESB? Are there any marketplace apps that perform native API integrations?


author: Evgenii
body: I used Zapier, for some cases, it's pretty easy to use.
Automatically move on the already planned tasks
Asked by Mattia Meneghetti:

Hello everybody,

Real case: I coordinate a team of 5 developers, and we all work 40 hours per week. Every two weeks, I plan the work for the team for the following two weeks. However, we often encounter unexpected issues in the middle of the week that cause delays.

Question: I would like to know if it is possible to automatically move on the already planned tasks in case we receive an unplanned task in the middle of the week.

Please let me know if you have any suggestions or solutions. Thank you!


Answers:
author: Sam Harding
body: Hi [@Mattia Meneghetti](/t5/user/viewprofilepage/user-id/5253228)

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 following rule:  

Trigger -\> On issue created  
Branch -\> Related Issues -\> JQL -\> Sprint = {{issue.Sprint}} and assignee = {{issue.assignee}}  

Then inside the branch  
Edit issue -\> Field "Planned Start Date" -\> {{issue.Start Date.plusBusinessHours(triggerIssue.timetracking.remainingEstimateSeconds / 3600)}}  

That should push any issues assigned to the new blocked assignee forward by how ever many hours are estimated on the blocker.

Give that a go, and if you have any problems with the configuration please reach out so we can try to address them

Cheers  
Sam


author: Mattia Meneghetti
body: Hi [@Ste Wright](/t5/user/viewprofilepage/user-id/1166470) ,

i will try to give you more information with a real example, i have:

* "issue one" with an effort of 7 hours
* "issue two" with an effort of 7 hours
* Mario Rossi work 7 hours per day

This is the week plan for developer Mario Rossi:

* Monday: issue one planned, the day is full
* Tuesday: issue two planned, the day is full

Monday morning we receive a blocker issue with 14 hours of effort, i need an automation to do that for Mario Rossi:

* Monday: blocker issue, the day is full
* Tuesday: blocker issue, the day is full
* Wednesday: issue one planned, the day is full, the issue one ++automatically shifted because the blocker issue++
* Thursday: issue two planned, the issue two++automatically shifted because the blocker issue++
* ..

I hope i help you to better understand my question.

Thank you.


author: Ste Wright
body: Hi [@Mattia Meneghetti](/t5/user/viewprofilepage/user-id/5253228)

Can I clarify what you mean by "automatically move on" the planned tasks?

More information would be great!

Ste
Trello Automation with location
Asked by Peter ?Tok Sik? Cano:

Trying to create an automation that involves the location feature, so it can be mirrored on a linked card. I want the trigger to be "When a location is added" or something on those lines but I don't see any option that allows for any automation regarding the location feature is trello.


Answers:
author: Sam Harding
body: Hi [@Peter "Tok Sik" Cano](/t5/user/viewprofilepage/user-id/5251199)

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


Tags: cloud
Automation - @ function
Asked by Leah Bell:

When will we see @ function added to Jira Automation


Answers:
author: John Funk
body: Hi Leah,

You will be better off asking Atlassian direction with a support ticket.

<https://support.atlassian.com/contact/#/>


author: Leah Bell
body: Hi [@Bill Sheboy](/t5/user/viewprofilepage/user-id/1685313)

will ask Atlassian Directly no worries but as a scenario i have set up a automation for the


author: Bill Sheboy
body: Hi [@Leah Bell](/t5/user/viewprofilepage/user-id/4151939)

What problem are you trying to solve with that function/feature in an automation rule? Knowing that may the community to offer idea. Thanks!

Kind regards,  
Bill

comments: author: Leah Bell
body: Thanks [@Bill Sheboy](/t5/user/viewprofilepage/user-id/1685313)

as a scenario i have set up an automation for SLA - Breach in 30 Mins and would like it to alert me when commenting on this issue which it can do if i put CC: \[\~accountId:1234myaccountid\] but i just think the @ function would be a lot easier then going in a finding peoples account ID's every time i want them alerting in a ticket update via automation.


Tags: cloud

jira-software

jira-software-cloud
Atlassian products on Bare Metal Kubernetes
Asked by Kadriye Taylan:

Hello,

I want to host atlassian products on kubernetes which storage solution is most suitable or how should we manage the storage?

We are currently using bare metal kubernetes. We use longhorn for storage. However, I would like to hear from you what is the most suitable solution for the atlassian. Also do you have support for kubernetes?

Thank you


Answers:
author: Yevhen
body: [@Kadriye Taylan](/t5/user/viewprofilepage/user-id/5250501) yes, Kube is supported. See: <https://atlassian.github.io/data-center-helm-charts/>

As to storage, all datacenter products need a shared volume - RWX, and a RWO for local home. Not sure if anyone in the community had experience deploying to bare metal k8s.

In AWS world, EFS and EBS would be the right storage backends (in Azure - Azure Disk and Azure Files). There are no strict requirements for storage backend, except for Bitbucket that needs fast disk (thus AWS EFS isn't supported).
Automated Email Notifications for new page creations on Confluence
Asked by Mandy Wong:

Hi, I am trying to set up an automation that will send me an email when a new page is published under a specific parent page.

In the parent page, it contains a create from template button to create a form, the template has been labelled (intake-requests).

The automation I currently set up looks like this:

![Automation error.png](https://community.atlassian.com/t5/image/serverpage/image-id/264340i1E4B3AEA027019DC/image-dimensions/278x404?v=v2 "Automation error.png")However, I am not getting any notifications and not sure if there is a different way to approach this automation to set it up for the specific parent page.

Any ideas? Thanks!


Answers:
author: Darryl Lee
body: Somebody else came up with a fix since the **CQL IF Condition** appears to be broken:

Instead use a Smart Value in **Advanced compare condition**:

![image (11).png](https://community.atlassian.com/t5/image/serverpage/image-id/264796iD8727683EACFAB2C/image-size/large?v=v2&px=999 "image (11).png")


author: Darryl Lee
body: A friend informed me about this open bug, which um, is still unresolved.

* [AUTO-699 - Using CQL in "If / else block" conditions doesn't always work](https://jira.atlassian.com/browse/AUTO-699)

So... that's fun.

My recommendation would be to file a Support ticket, and then add it to that bug.


author: bmccoy
body: Hi!

My first thought is that maybe the label is being added AFTER the page is initially published. So when it tries to check the CQL condition it's evaluating to false.

The audit log should be able to give you some indication as to what is happening, so maybe check there for any errors/messages (or if it's even triggering at all).

Cheers,  
Brydie
Is there a way to automate account creation in Sailpoint via Jira Automation
Asked by Danisse:

Is there a way to automate account creation in Sailpoint via Jira Automation


Answers:
author: Dirk Ronsmans
body: Hey [@Danisse](/t5/user/viewprofilepage/user-id/3441045) ,

I don't have any specific knowledge about Sailpoint but I do see it has an API

<https://developer.sailpoint.com/idn/api/v3/>

Hence you could use a webhook action in Automation and then provide the correct payload to create a user.

I suggest first trying to send the correct payload outside of Jira and then adding it to an automation


Tags: account
Update test data written in Test Cases
Asked by Vishwanath Hokrani:

Hi,

I have test case written as in BDD scenarios format.

Given valid username and password  
When the user enters "\<username\>" and "\<password\>" the credentials  
Then the user logs into the customer portal successfully  
Examples:  
\| username \| password \|  
\| testiing \|testing@123 \|

After db refresh, i need to change login details like username and password.

If its 1 TC, then i can modify easily. Currently i have around more than 500 TC, how to modify it?

Do we have common repository, where we can add data like this and use in the test case scenarios.


Answers:
author: Bill Sheboy
body: Hi [@Vishwanath Hokrani](/t5/user/viewprofilepage/user-id/5249122) -- Welcome to the Atlassian Community!

Are you asking about managing tests/test data with Jira, or with another tool (or marketplace addon)?

If another tool, please talk with your Jira admin about how your scenario may be accomplished.

If this is for Jira, how are you managing tests and test data today?

Kind regards,  
Bill

comments: author: Vishwanath Hokrani
body: Hi Bill,

Thanks for quick reply.

Yes, I'm talking about managing test data with Jira.

Currently in our company, test cases running manually. So when they running the test case they not define any test data within the Test cases.

Now we started automating test cases using Cucumber playwright tool. So we are defining test data within scenarios in test cases. To run test cases, we import the test cases in BDD format i.e. in cucumber feature file and run the feature file.

Since we define test data in test cases, is there way to update test data in test cases either using API or define common test data file which can be used within the test case.

Thanks \& Regards,

Hokrani


author: Bill Sheboy
body: Thanks for that information. You do not indicate if you are using Jira Cloud or Server/Data Center versions, and so for something that might work with both...

You could create Automation for Jira rules, possibly calling the REST API functions for your testing tool, to update the data. Please check your testing tool and your Jira instance to learn what is available. Automation rules are included with Jira Cloud, and they can be added to Server/Data Center versions (although I believe there are free and paid versions).

Regarding your scenario: why do you want to change data for automated tests? This seems to contradict one idea of test automation to be consistent and repeatable. Are you doing this to incrementally add additional tests from your Behavior-Driven Development (BDD) practices?
How can I auto assign a ticket to someone on a issue status transition for a specific issue type?
Asked by Steve Hooczko:

How can I auto assign a ticket to someone on a issue status transition for a specific issue type?

For a custom issue type, with custom state transitions, I want to be able to auto assign an issue (ticket) to a specific person when it transitions from one status to the next.

What is the best method to do that? Automation Rules? Post processing?


Answers:
author: Holger R?sch
body: Hi Steve,

best to use an automation rule (easy).

**Trigger** would be the status transition from "status" to "status" (or just to "status" works too)

Then you check the Issue type in a **condition** (issue fields condition)

and as a last step you take **action** with assigning the issue to a user![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/264094iE234C657AA7A236E/image-size/large?v=v2&px=999 "image.png")

Hope that helps,

Holger


author: Deepak Jain
body: Hi [@Steve Hooczko](/t5/user/viewprofilepage/user-id/4203456) ,

If you want to use Automation, then answer provided by [@Holger R?sch](/t5/user/viewprofilepage/user-id/1667964) is best. Automation is best method here.

But if you want to do it differently, you can configure it using workflows. Some key points to configure with workflow:

* Configure different Jira workflows for different issuetypes
* Use workflow post-function to assign issue to specific person

Thank you !!


Tags: post-function
We are not able to login into iur bitbucket data center using password and username
Asked by Naveen Sharma:

Forgot to enable password login , we have done saml sso , now its license is over and we are not able to login into repo


Answers:
author: Charlie Misonne
body: Hi [@Naveen Sharma](/t5/user/viewprofilepage/user-id/5049028)

The SSO plugins often have a way to login without SSO by adding some parameter in the URL.

You should consult the documentation of your specific plugin.

If that does not work you can consider using the recovery admin: <https://confluence.atlassian.com/bitbucketserver/lockout-recovery-process-776640158.html>


Tags: bitbucket-data-center

data-center
my push command all getting blocked- HELP
Asked by Aziz Alsh:

Hello Experts,

i have git repository on bit bucket for a react native project.

now a days all my push commands are rejected.

this the example:  

<br />

azizmacbook@AbdulazizsMBP2 professoryrn % git push --force origin master

Uploading LFS objects: 100% (2/2), 1.5 GB \| 0 B/s, done.  
Enumerating objects: 36331, done.  
Counting objects: 100% (36331/36331), done.  
Delta compression using up to 12 threads  
Compressing objects: 100% (17614/17614), done.  
Writing objects: 100% (36329/36329), 845.08 MiB \| 2.12 MiB/s, done.  
Total 36329 (delta 16900), reused 36224 (delta 16853), pack-reused 0  
remote: Resolving deltas: 100% (16900/16900), completed with 1 local object.  
remote: Checking connectivity: 36329, done.  
remote: Your push has been blocked because it includes at least one file that is 100 MB or larger. Bitbucket Cloud recommends using Git LFS for large files to prevent repositories from growing too large and reaching the 4 GB repo size limit. Learn more about Git LFS at <https://support.atlassian.com/bitbucket-cloud/docs/manage-large-files-with-git-large-file-storage-lfs/>. If necessary, the file size limit can be disabled by an admin in Repository settings. Learn more at <https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/#Avoid-adding-large-files>.  
To <https://bitbucket.org/barmjni/professoryrn.git>  
! \[remote rejected\] master -\> master (pre-receive hook declined)  
error: failed to push some refs to '<https://bitbucket.org/barmjni/professoryrn.git>'


Answers:
author: Ben
body: Hi [@Aziz Alsh](/t5/user/viewprofilepage/user-id/5513180)

This is due to a recent setting that was automatically enabled on all repositories to prevent repo size from exceeding:

* <https://community.atlassian.com/t5/Bitbucket-articles/Bitbucket-Cloud-is-implementing-a-100-MB-limit-on-files-included/ba-p/2629017>

A repository admin will need to navigate to **Repository Settings \> Repository Details** and click the **Advanced** tab - from here they will need to untick **Block pushes with files over 100MB**so that you may proceed with the push.

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: Daniel
body: I am having a similar issue. I enumerated all the files for the local project. There is no single file that is 100 MB or larger. Still, I get the above error


author: Daniel
body: Also, the entire repo is roughly 2.8 GB, so it doesn't exceed the 4 GB limit.


author: Daniel
body: I used Git LFS to solve the issue. I am still intrigued as to why I was getting the error when there is no single file that is 100 GB or more.


author: Ben
body: Hi [@Daniel](/t5/user/viewprofilepage/user-id/5595099)

It's unclear unless I had seen the verbose output, there's a chance that the push would have exceeded the 4GB limit and this is why the push was blocked. I'm glad to hear LFS solved your issue :)

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud