youngmon/atlassian-qna huggingface dataset:
I want to create an automation to calculate time logged when a user closes an issue.
Asked by Charlie Wright:

This is my first automation using smart time values; I want to create an automation to calculate time logged as the difference between when the issue is created and when it is closed. Background - these are typically 5-10 minutes tasks. So, the trigger is when the issue is transitioned to Done:

Date started: {{issue.created}}

Time spent: {{now.diff(issue.created).minutes}}

Work description: Completed {{issue.key}}

Wheat am I doing wrong here? Thanks.


Answers:
author: Trudy Claspill
body: Hello [@Charlie Wright](/t5/user/viewprofilepage/user-id/5534411)

Welcome to the Atlassian community.

When asking for help with an automation it will help us help you if you provide the following:

1. Screen images showing your entire rule and the details of each step.

2. The details from the rule execution log

3. A description in your words of how the results don't match your expectations.

Is the information you provide the entries for a Log Work action?

Do you get a new worklog entry on the issue? If you do, what value is being shown for time spent?

comments: author: Charlie Wright
body: ![Screenshot 2024-08-29 082346.png](https://community.atlassian.com/t5/image/serverpage/image-id/344518iE4AA542791EEAF31/image-size/large?v=v2&px=999 "Screenshot 2024-08-29 082346.png")![Screenshot 2024-08-29 082445.png](https://community.atlassian.com/t5/image/serverpage/image-id/344519iAAB7DEFA4B91DC81/image-size/large?v=v2&px=999 "Screenshot 2024-08-29 082445.png")


author: Charlie Wright
body: The result I am seeking is a time entry for work performed on the issue that is equal to the difference between when the issue was created and when it was closed: issues are reported be end users in Teams, whereupon the support team creates the Jira ticket using the Teams-Jira integration, actions the request, and closes the Jira ticket, all in Teams. Yes, the goal is to move the requests to Jira Service Management but the organization is not ready for that yet.


author: Charlie Wright
body: I have it working now, no further replies needed.


author: Trudy Claspill
body: Can you share your solution so others can learn from your experience? If you create a separate Answer thread you can also Accept your own Answer to mark your question as Solved. That helps others find posts with verified solutions.


Tags: cloud

jira-cloud

jira-software

smart-value
Alternatives to Service Accounts?
Asked by Eric Pozzobon:

Hello Everyone,

Has anyone found any alternatives to service accounts that work for JIRA?

1. gMSA \& sMSA seem to be out of the question, or not supported, unless I am mistaken.
2. I don't see any authentication protocols that don't require a User Account and an API token.
3. We do not have an internal app to handle requests "as application".

The trouble we run into is several fold:

1. We need to create a separate profile/email for 2FA for these accounts, leading to sharing and excess visibility.
2. Passwords expiring creates a risk of integrations breaking
3. License count expands as more and more service accounts

Any ideas on how we can handle this more securely \& efficiently? TIA!


Answers:
author: Jim Knepley - ReleaseTEAM
body: I haven't needed to use it yet myself, but [Jira supports OAuth 2.0](https://support.atlassian.com/jira-software-cloud/docs/allow-oauth-access/).

That page seems to contradict itself, though:

"You can revoke this access token at any time from your Jira user account, otherwise, all access tokens expire after seven days."

"This access token is specific to this gadget and as long as the token resides with the gadget, your gadget will have access to your Jira data."


Tags: cloud

jira-cloud
Sorry, your username and password are incorrect - please try again
Asked by Muhammed Ayaz:

Company provides me user name password

my user name is ayaz_job2010.   
when I tied to login with this am not able to login


Answers:
author: Trudy Claspill
body: Hello [@Muhammed Ayaz](/t5/user/viewprofilepage/user-id/5579086)

Welcome to the Atlassian community.

Logins for Atlassian Cloud products are email addresses; i.e. ayaz_job2010@somecompany.com

If you tried to login to Atlassian Cloud with literally just **ayaz_job2010** then that would not work.

You need to go to your company support team to confirm that they have given you the correct login information, and confirm with them exactly where you should be using that login information.


Tags: cloud

jira-cloud
Jira Cloud - Disable Configure button
Asked by Christa Meck:

I saw this hinted at when it was called the "Configure Fields" button... and that one behaved a little bit different than our current button...

Is there a way for administrators to disable the Configure button? I have a user who regularly rearranges the fields based on personal preference regardless of the fact that they have been coached that they are changing the view for everyone.

To be clear: I am referring to the button in the pink box

![1.png](/t5/image/serverpage/image-id/344323i5E8488D575723283/image-size/large?v=v2&px=999 "1.png")

99% sure the answer is no, but figured I would ask the group. :)

- Christa


Answers:
author: Walter Buggenhout
body: Hi [@Christa Meck](/t5/user/viewprofilepage/user-id/2781674),

According to [this support article about the new issue layout](https://support.atlassian.com/jira-software-cloud/docs/configure-field-layout-in-the-issue-view/) and [this one about the old layout](https://support.atlassian.com/jira-cloud-administration/docs/configure-issue-layout/), only Jira Administrators or people assigned the project administrator role should be able to configure the issue lay-out for a project. Though the article about the old layout is much more explicit about this restriction.

Other than that, no - there is no option that I know of to disable the button.

Hope this helps!


author: Josh Costella
body: Hi [@Christa Meck](/t5/user/viewprofilepage/user-id/2781674)

To further expand on [@Walter Buggenhout](/t5/user/viewprofilepage/user-id/783225)'s comment, if the user in question does not need to have access to configure the layout, I'd recommend removing them from the Project Admin, Product Admin, or Site Admin role which they are a part of. Once they are removed, they will no longer see the button.


Tags: cloud

jira-cloud
Creating an Automation for a Date field and convert it to a Date Time field.
Asked by James Phonesavanh:

Hello all,

I am trying to convert a date field to a datetime field.

The field is target date(Date Field) to Planned start(Date/Time field)

When just writing the automation to copy Target start to Planned start shows a date and time, but the day before

I have tried adding hours and days but it doesn't not appear if I try this.

When putting into the comment It does appear correct. This is if I copy the target start and Planned Start

In the detail pane it shows:

Planned start now shows Dec 04,2024, 6:00PM

Target Start Shows Dec 05, 2024

In the comments it shows correctly:

Target start:2024-12-05

Planned Start: 2024-12-05


Answers:
author: Trudy Claspill
body: Hello [@James Phonesavanh](/t5/user/viewprofilepage/user-id/5363306)

Welcome to the Atlassian community!

When asking for help with an Automation Rule it is helpful to use if you provide screen images that show the entire rule and the details of each step. Sometimes there are typos, or context is affecting the outcome, and we can determine that only if we can see the actual rule.

Another element that may factor in to this scenario is whether or not you have a time zone preference set. Dates and times are recorded in the Jira Cloud database as UTC, and then within the UI date and date/time fields are converted for display based on your time zone setting. That could be a factor in this situation.


Tags: cloud

jira-service-management

jira-service-management-cloud
due date change details
Asked by Nidhi singh:

Hello All,

Can anyone know how we can identify all ticket in which due date has been changed? I checked their is no JQL query which can fetch all ticket in which due date has been changed means not that which was set as an initial.

If JQL is not their except any addon do we have any alternate option to track that?

Thanks


Answers:
author: Pears Whims
body: Hi [@Nidhi singh](/t5/user/viewprofilepage/user-id/5526345) ,

I just wanted to check in and see if any of the suggestions from the community helped you resolve the issue of tracking due date changes. If you've found a solution, feel free to share or accept one of the answers. It helps others in the community find the right solution quickly.

Let me know if you need any further assistance!

Best regards,  
Pears


author: Pears Whims
body: Hi [@Nidhi singh](/t5/user/viewprofilepage/user-id/5526345) ,

Just checking in to see if any of the suggestions from the community helped you resolve your issue with tracking due date changes in Jira.

If you found a solution, it would be great to know - especially if you'd like to accept any of the answers, as this helps others find solutions faster.

Let me know if you need further assistance!

Best,  
Pears


author: Pears Whims
body: Hey [@Nidhi singh](/t5/user/viewprofilepage/user-id/5526345)

JQL does support the was function, which may meet Your needs for tracking due date changes

And on this topic You may find this thread helpful: <https://community.atlassian.com/t5/Jira-questions/Is-there-a-way-to-find-Jira-Issue-Due-Date-changes/qaq-p/1968959>

In this thread, various approaches are discussed, including:

* Using the built-in Jira history to manually check changes on individual issues.
* Exploring third-party add-ons like "Issue History for Jira" for more comprehensive tracking and reporting.
* Leveraging REST API scripting for more customized solutions.

These suggestions should give you a better idea of the options available.

Cheers,  
Pears.


author: Trudy Claspill
body: Hello [@Nidhi singh](/t5/user/viewprofilepage/user-id/5526345)

Without a third party app you have one option for finding information about issues where Due Date has changed at some point in the past - use the Jira REST API to retrieve issue change log information and parse through the logs looking for the information to indicate that Due Date was changed.

A go-forward solution would be to use Automation Rules to make a note in a custom field in each issue about the Due Date being changed. That rule could keep a simple tally of the number of times the field has been changed, or you could use a text field to keep track of the details of each change. You could then use JQL to search for information based on that custom field.


Tags: cloud

jira-cloud
Is it possible to turn off "Workload by assignee" in Sprints?
Asked by Jeff Dean:

I'm working with a team that is trying to move away from measuring individual contributions.

We'd like to hide all the UI elements that show which developers have how many points.

Is that possible?

Thanks!


Answers:
author: Lisa Forstberg
body: Hi [@Jeff Dean](/t5/user/viewprofilepage/user-id/5578953) ,

Welcome to the community!

It is a very good and refreshing thought! I can't find any configuration option to toggle off/on that option in the board or GUI as a whole.

Some teams I have worked with have left the Story unassigned and worked with individual subtasks to sort of take on a Story "as a Team". Then you can count subtasks per assignee instead... ;-)

best regards

Lisa

comments: author: Jeff Dean
body: Thanks!


Tags: cloud

jira-cloud
How to restrict user from logging work when the original estimate is blank.
Asked by Bhanuprakash:

Hello all,

we are using jira cloud standard version and want to achieve the below requirement.

<br />

1. Whenever user tries to enter work log in an Issue in any issue it must validate whether Original Estimate has value, if there is no value in Original Estimation field then user should not be able to log work. It should throw an error message that should say that original estimate field is blank.

2. No issue with Original Estimation can be more than 16hrs - if someone tries to enter more than 16hrs in Original Estimation field it should prompt an message to that only 16hrs for each issues, incase of any more hours entered user needs to split the complete hours into 2 and splits the hours accordingly.

3. No Issue should be moved to sprint whenever an issue has blank in Original Estimation field..

can this be achieved using Script Runner for Jira Cloud


Answers:
author: Pears Whims
body: Hey [@Bhanuprakash](/t5/user/viewprofilepage/user-id/5578989)

To achieve the requirements you mentioned:

* Restrict logging work when the Original Estimate is blank: Use a custom ScriptRunner Validator to check if the Original Estimate has a value before allowing work logs.
* Enforce a maximum of 16 hours in the Original Estimate: Implement a ScriptRunner Validator to prevent saving if the Original Estimate exceeds 16 hours.
* Prevent issues from being moved to a sprint if the Original Estimate is blank: Use workflow conditions or a custom script to block this action.

For more detailed guidance and similar solutions, you may find this thread helpful: [Restriction with Time estimation and time spending process](https://community.atlassian.com/t5/Jira-questions/Restriction-with-Time-estimation-and-time-spending-process/qaq-p/2619865).

Cheers,  
Pears Whims.


Tags: cloud

jira-cloud
Report Issue Counts that Pass Various Filters on a Dashboard
Asked by Steve Rosenberry:

I have a number of queries/filters retrieve issues with certain text values in the Summary or Description. I'd like to report the number of issues that pass each filter on a dashboard. I cannot seem to find the gadget magic to make that happen. Help!  

I don't want to categorize by any other field in the issue. Just need the raw count.


Answers:
author: Danut M _StonikByte_
body: Hi [@Steve Rosenberry](/t5/user/viewprofilepage/user-id/2165774),

Unfortunately, there is no such gadget on the Data Center.

A solution would be to search for an app on Atlassian Marketplace that has a gadget able to display filter count.

If you consider the idea of using an app, then our [Great Gadgets](https://marketplace.atlassian.com/search?query=stonikbyte%20great%20gadgets%20agile) app offers an **Advanced Issue Filter Formula gadget** that can display the count from up to 6 filters.

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

It is highly configurable; you set the texts displayed. The gadget allows you to calculate sums, average, percentages...

You can also use the **Issue Filter Formula gadget** offered by the same app.

Danut


author: Marc - Devoteam
body: Hi [@Steve Rosenberry](/t5/user/viewprofilepage/user-id/2165774)

I think you mean you want to know if an issue has been in a filter, correct?

There is no history related to which issues have been matched in a filter. The filter shows results based on the provided query.

There is no logging on an issue, that its been in filter a,b or c.


author: Lisa Forstberg
body: Hi [@Steve Rosenberry](/t5/user/viewprofilepage/user-id/2165774)

Welcome to the community!

Oh darn, you are on data-center and I think the wonderful gadget called "Filter Counts" is not available there yet right? Vote on this [feature request](https://jira.atlassian.com/browse/JRASERVER-66701)

And do you have any addons in your environment at all?

![Screenshot 2024-08-28 at 18.57.45.png](https://community.atlassian.com/t5/image/serverpage/image-id/344310iF3C85CA76355FDF1/image-size/large?v=v2&px=999 "Screenshot 2024-08-28 at 18.57.45.png")

best regards

Lisa

comments: author: Steve Rosenberry
body: Thanks, Lisa! That would be an awesome (and one hope relatively easy) addition to gadget library!

Voted


author: Steve Rosenberry
body: Of course, that created date in the beginning of 2018 is not giving me any hope :(


Tags: data-center

jira-data-center
Auto Assign Categories for each Project Created in JIRA Work Management
Asked by Sandra Middleton:

Is there a way to auto assign a Category for each Project Created in JIRA Work Management? This would be based upon the department of that is creating that project. For instance, if the Training Department staff member creates a project in JWM, that project would be assigned under "Training Department" category.


Answers:
author: Trudy Claspill
body: Hello [@Sandra Middleton](/t5/user/viewprofilepage/user-id/5139879)

Let us clarify terminology first.

In Jira there are Projects. Projects contain issues.

Jira Projects themselves can be assigned a Project Category in the Details section under Project Settings.

![Screen Shot 2023-03-27 at 12.39.52 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/248003i70D5F7A2AFEAD1E8/image-size/large?v=v2&px=999 "Screen Shot 2023-03-27 at 12.39.52 PM.png")

In Work Management Projects there is also a Category field that can be set for each Issue in the Project.

![Screen Shot 2023-03-27 at 12.41.26 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/248007i2FEB61BC63E89551/image-size/large?v=v2&px=999 "Screen Shot 2023-03-27 at 12.41.26 PM.png")

Given that, are you asking about automating the assignment of a Project Category to each Work Management project, or automating assignment of Category in Issues in a Work Management project?

comments: author: Sandra Middleton
body: Hi Trudy! Thanks for responding. I am asking about automating the assignment of a project category to each work management project. The automation would be based upon the department of the staff member creating the project.


author: Trudy Claspill
body: How would Jira know the department of the person that created the project? Do you have that information in Jira?

You can create a Global rule (from Settings \> System \> Global Automation) with the Trigger for "Project Created".

If you have a method to identify the department of the user that created the project (triggered the rule) then I think you could use a [Send Web Request action](https://support.atlassian.com/cloud-automation/docs/jira-automation-actions/#Send-web-request) to invoke the Jira REST API to set the Project Category field.

<https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-projects/#api-rest-api-3-project-projectidorkey-put>


Tags: cloud

jira-work-management-cloud
Client can`t add attachments to Jira
Asked by Sergio Cardoso:

I've made the configurations so that the client can add attachments to Jira, but after the configurations, the client can't add attachments either by pressing + in the comment box or by dragging and dropping.


Answers:
author: Marc - Devoteam
body: Hi [@Sergio Cardoso](/t5/user/viewprofilepage/user-id/5546945)

Look at the permissions, does the client have browse, edit and add attachment permissons?

comments: author: Sergio Cardoso
body: i do all configurations


author: Sergio Cardoso
body: ![Screenshot 2024-08-28 at 18.13.44.png](https://community.atlassian.com/t5/image/serverpage/image-id/344312i13D806A7B48294D9/image-size/large?v=v2&px=999 "Screenshot 2024-08-28 at 18.13.44.png")


author: Sergio Cardoso
body: Solved - Default Permission Scheme


Tags: cloud

jira-cloud
How are users counted for billing?
Asked by Umesh Madupuri:

1. I am using the free version of JIRA Work Management and created 3 projects (test_1, test_2 and test_3). I have assigned a member outside our organization to only test_1 project and by default he has been selected as the administrator. But he is also able to see project to in his JIRA login even though he has not been assigned to the other 2 projects. Is there any solution for this so that he/she can see only Project 1.  

2. If there are already 10 users in my workspace and I want to share or give the non-Administrator access of my project to the a person (outside my organization). Will he/she also be counted as an user and will we be charged for the 11th person ?


Answers:
author: Alex Koxaras _Relational_
body: Hi [@Umesh Madupuri](/t5/user/viewprofilepage/user-id/5180211) and welcome to the community,

If you give them product access, which is required for a user to use and view all Jira goodies/functionalities, then yes. I would assume that you are working on Jira Work Management and a Team Managed Project, since these roles are found in the latter. So even if you mean that you want your "guests" to be able to see your project's summary or any gadget on the dashboard, they have to have a valid license.


author: Dave Mathijs
body: Hi [@Umesh Madupuri](/t5/user/viewprofilepage/user-id/5180211) welcome to the Atlassian Community!

In order for people/users to see a dashboard, they'll need a Jira Software license.

However, you asked this question in the **Jira Work Management** product group.

So, for my understanding, are you referring to Jira Work Management (JWM) or Jira Software (JSW) when talking about dashboards?


Tags: jira-core

jira-software

new-to-jira
Link automatically created Issue to trigger issue
Asked by Pauline Hild:

Hi everyone,

I've created an automation that creates a new task based on time. Now I want the newly created task to be automatically linked to the trigger issue. The screenshot shows my current automation, but with this automation the linking does not work.

I would be very grateful for any tips.

Best regards,

Pauline

![Bildschirm?foto 2023-03-25 um 15.47.58.png](/t5/image/serverpage/image-id/247735iD7C113BB490587A2/image-size/large?v=v2&px=999 "Bildschirm?foto 2023-03-25 um 15.47.58.png")


Answers:
author: Trudy Claspill
body: Hello [@Pauline Hild](/t5/user/viewprofilepage/user-id/4773022)

If you tried to manually create an issue in the LAB project, in the Create Issue dialog do you see the fields for creating a link between the issue you are creating and another issue?![Screen Shot 2023-03-25 at 7.04.35 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/247764iAC070C4DBBCE2E11/image-size/large?v=v2&px=999 "Screen Shot 2023-03-25 at 7.04.35 PM.png")

If you don't see those fields in the Create Issue dialog, then you can't create a link for the issue within the Automation Rule. Automation Rules that are creating issues can set only the fields that are available in the Create Issue dialog if you were to try to create the same issue manually.

If the LAB project is a Company Managed project (check the bottom of the navigation panel on the left for that info), then you need to update the screen used for creating issues in that project so that it includes the Linked Issues field.

![Screen Shot 2023-03-25 at 7.07.49 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/247765iB21CC578919AC95C/image-size/large?v=v2&px=999 "Screen Shot 2023-03-25 at 7.07.49 PM.png")

comments: author: Pauline Hild
body: Hello [@Trudy Claspill](/t5/user/viewprofilepage/user-id/3569011) ,

thank you very much for your answer! It was actually because there was no "Linked Issue" field in the screen, I added that and now the automation works, perfect!


author: Benjamin
body: Hi [@Pauline Hild](/t5/user/viewprofilepage/user-id/4773022) ,

what you have setup looks logical. Check the audit log link in your screen shot to pinpoint where the issue is. It might produce what the error is to troubleshoot this further.

My guess is that you don't have an issue as a trigger since your trigger is a scheduler and your Epic rule is a condition. However, the audit log should help further look into this.

-Ben

comments: author: Pauline Hild
body: Hi Ben,

thanks for your answer. I checked the audit log but I don't understand it.

![Bildschirm?foto 2023-03-25 um 16.50.32.png](https://community.atlassian.com/t5/image/serverpage/image-id/247738i1080FABDD3A32F20/image-size/large?v=v2&px=999 "Bildschirm?foto 2023-03-25 um 16.50.32.png")


Tags: cloud

jira-work-management-cloud